Bug 1061430 - Change SharedPreferences.Editor commit() to apply() where appropriate (CrashReporter.java) r=rnewman

This commit is contained in:
Mark Finkle 2014-09-03 02:00:45 -04:00
parent 19fafe38cb
commit 38fa0abdef

View File

@ -137,7 +137,7 @@ public class CrashReporter extends Activity
SharedPreferences.Editor editor = prefs.edit();
editor.putBoolean(GeckoApp.PREFS_WAS_STOPPED, true);
editor.putBoolean(GeckoApp.PREFS_CRASHED, true);
editor.commit();
editor.apply();
final CheckBox allowContactCheckBox = (CheckBox) findViewById(R.id.allow_contact);
final CheckBox includeUrlCheckBox = (CheckBox) findViewById(R.id.include_url);