Bug 1464003 - Refresh sync preference after rebuilding the list. r=Grisha
authorVlad Baicu <vlad.baicu@softvision.ro>
Fri, 04 Jan 2019 10:17:03 +0000
changeset 509627 0ca6e1f583f4444e415f375d8cd5ff88e3a2be9b
parent 509626 8908b6922e23707e92e6bd7a55c5c5460f4fa717
child 509628 3280e1de13ecb18fd4f02be55f17e8e374f40412
push id10547
push userffxbld-merge
push dateMon, 21 Jan 2019 13:03:58 +0000
treeherdermozilla-beta@24ec1916bffe [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersGrisha
bugs1464003
milestone66.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 1464003 - Refresh sync preference after rebuilding the list. r=Grisha Differential Revision: https://phabricator.services.mozilla.com/D15209
mobile/android/base/java/org/mozilla/gecko/preferences/GeckoPreferenceFragment.java
--- a/mobile/android/base/java/org/mozilla/gecko/preferences/GeckoPreferenceFragment.java
+++ b/mobile/android/base/java/org/mozilla/gecko/preferences/GeckoPreferenceFragment.java
@@ -196,16 +196,17 @@ public class GeckoPreferenceFragment ext
         if (!currentLocale.equals(lastLocale)) {
             // Locales differ. Let's redisplay.
             Log.d(LOGTAG, "Locale changed: " + currentLocale);
             this.lastLocale = currentLocale;
 
             // Rebuild the list to reflect the current locale.
             getPreferenceScreen().removeAll();
             addPreferencesFromResource(getResource());
+            syncPreference = (SyncPreference) findPreference(GeckoPreferences.PREFS_SYNC);
         }
 
         // Fix the parent title regardless.
         updateParentTitle();
     }
 
     /*
      * Get the resource from Fragment arguments and return it.