mirror of
https://codeberg.org/tom79/Fedilab.git
synced 2025-01-07 00:20:08 +02:00
Turn off crash reports set to true by default
This commit is contained in:
parent
a80bdd6ac3
commit
dc3f464ea4
3 changed files with 4 additions and 4 deletions
|
@ -9,8 +9,8 @@ android {
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
minSdk 21
|
minSdk 21
|
||||||
targetSdk 31
|
targetSdk 31
|
||||||
versionCode 395
|
versionCode 396
|
||||||
versionName "3.0.5"
|
versionName "3.0.6"
|
||||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||||
}
|
}
|
||||||
flavorDimensions "default"
|
flavorDimensions "default"
|
||||||
|
|
|
@ -75,7 +75,7 @@ public class MainApplication extends MultiDexApplication {
|
||||||
super.attachBaseContext(base);
|
super.attachBaseContext(base);
|
||||||
MultiDex.install(MainApplication.this);
|
MultiDex.install(MainApplication.this);
|
||||||
SharedPreferences sharedpreferences = PreferenceManager.getDefaultSharedPreferences(MainApplication.this);
|
SharedPreferences sharedpreferences = PreferenceManager.getDefaultSharedPreferences(MainApplication.this);
|
||||||
boolean send_crash_reports = sharedpreferences.getBoolean(getString(R.string.SET_SEND_CRASH_REPORTS), true);
|
boolean send_crash_reports = sharedpreferences.getBoolean(getString(R.string.SET_SEND_CRASH_REPORTS), false);
|
||||||
if (send_crash_reports) {
|
if (send_crash_reports) {
|
||||||
ACRA.init(this, new CoreConfigurationBuilder()
|
ACRA.init(this, new CoreConfigurationBuilder()
|
||||||
//core configuration:
|
//core configuration:
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
app:title="@string/embedded_browser" />
|
app:title="@string/embedded_browser" />
|
||||||
|
|
||||||
<SwitchPreferenceCompat
|
<SwitchPreferenceCompat
|
||||||
app:defaultValue="true"
|
app:defaultValue="false"
|
||||||
app:iconSpaceReserved="false"
|
app:iconSpaceReserved="false"
|
||||||
app:key="@string/SET_SEND_CRASH_REPORTS"
|
app:key="@string/SET_SEND_CRASH_REPORTS"
|
||||||
app:singleLineTitle="false"
|
app:singleLineTitle="false"
|
||||||
|
|
Loading…
Reference in a new issue