|
|
|
@ -164,10 +164,7 @@ public class MainSettingsController extends SettingsController implements Settin |
|
|
|
|
|
|
|
|
|
setupUpdateSetting(about); |
|
|
|
|
|
|
|
|
|
crashReportSetting = about.add(new BooleanSettingView(this, |
|
|
|
|
ChanSettings.crashReporting, |
|
|
|
|
R.string.settings_crash_reporting, |
|
|
|
|
R.string.settings_crash_reporting_description)); |
|
|
|
|
setupCrashReportingSetting(about); |
|
|
|
|
|
|
|
|
|
setupExtraAboutSettings(about, version); |
|
|
|
|
|
|
|
|
@ -274,4 +271,13 @@ public class MainSettingsController extends SettingsController implements Settin |
|
|
|
|
v -> ((StartActivity) context).getVersionHandler().manualUpdateCheck())); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private void setupCrashReportingSetting(SettingsGroup about) { |
|
|
|
|
if (ChanSettings.isCrashReportingAvailable()) { |
|
|
|
|
crashReportSetting = about.add(new BooleanSettingView(this, |
|
|
|
|
ChanSettings.crashReporting, |
|
|
|
|
R.string.settings_crash_reporting, |
|
|
|
|
R.string.settings_crash_reporting_description)); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|