Skip to content

Commit 1f0d954

Browse files
committed
Merge pull request #1131 from garvankeeley/github-acra-default-to-on
Default the ACRA reporting to on for github builds
2 parents 855f708 + 8c9b6ac commit 1f0d954

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

android/src/main/java/org/mozilla/mozstumbler/client/ClientPrefs.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import android.content.Context;
44
import android.content.SharedPreferences;
55

6+
import org.mozilla.mozstumbler.BuildConfig;
67
import org.mozilla.mozstumbler.service.Prefs;
78
import org.mozilla.osmdroid.api.IGeoPoint;
89
import org.mozilla.osmdroid.util.GeoPoint;
@@ -96,7 +97,8 @@ public void setCrashReportingEnabled(boolean b) {
9697
}
9798

9899
public boolean isCrashReportingEnabled() {
99-
return getBoolPrefWithDefault(CRASH_REPORTING, false);
100+
// default to true for GITHUB build
101+
return getBoolPrefWithDefault(CRASH_REPORTING, BuildConfig.GITHUB);
100102
}
101103

102104
public void setMapTileResolutionType(int mapTileResolutionType) {

0 commit comments

Comments
 (0)