|
|
|
@ -72,7 +72,7 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
private final static String[] RESET_QUESTIONS = new String[]{
|
|
|
|
|
"welcome", "show_html_confirmed", "show_images_confirmed", "print_html_confirmed", "edit_ref_confirmed", "crash_reports_confirmed"
|
|
|
|
|
"welcome", "show_html_confirmed", "show_images_confirmed", "print_html_confirmed", "edit_ref_confirmed", "crash_reports_asked"
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@ -186,7 +186,10 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
|
|
|
|
|
swCrashReports.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
|
|
|
|
@Override
|
|
|
|
|
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
|
|
|
|
|
prefs.edit().putBoolean("crash_reports", checked).apply();
|
|
|
|
|
prefs.edit()
|
|
|
|
|
.remove("crash_reports_asked")
|
|
|
|
|
.putBoolean("crash_reports", checked)
|
|
|
|
|
.apply();
|
|
|
|
|
if (checked)
|
|
|
|
|
Bugsnag.startSession();
|
|
|
|
|
else
|
|
|
|
|