Bug 1061430 - Change SharedPreferences.Editor commit() to apply() where appropriate (Distributions.java) r=rnewman
authorMark Finkle <mfinkle@mozilla.com>
Wed, 03 Sep 2014 02:00:36 -0400
changeset 203403 12e1c3df054ee685209240fc9c495230a84bd31b
parent 203402 86fabccaf37c4b7aa09c09ac9135f2c14eb244a1
child 203404 2a9e2fe78b5f8f34572d4436a4e2f5b487ad4e0a
push id48665
push userryanvm@gmail.com
push dateWed, 03 Sep 2014 20:40:15 +0000
treeherdermozilla-inbound@0da762e6868a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersrnewman
bugs1061430
milestone35.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1061430 - Change SharedPreferences.Editor commit() to apply() where appropriate (Distributions.java) r=rnewman
mobile/android/base/distribution/Distribution.java
--- a/mobile/android/base/distribution/Distribution.java
+++ b/mobile/android/base/distribution/Distribution.java
@@ -366,17 +366,17 @@ public class Distribution {
 
         // We try the install intent, then the APK, then the system directory.
         final boolean distributionSet =
                 checkIntentDistribution() ||
                 checkAPKDistribution() ||
                 checkSystemDistribution();
 
         this.state = distributionSet ? STATE_SET : STATE_NONE;
-        settings.edit().putInt(keyName, this.state).commit();
+        settings.edit().putInt(keyName, this.state).apply();
 
         runReadyQueue();
         return distributionSet;
     }
 
     /**
      * If applicable, download and select the distribution specified in
      * the referrer intent.