File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed
WordPress/src/main/java/org/wordpress/android/ui/prefs Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change 1010import android .content .Intent ;
1111import android .content .res .Resources ;
1212import android .os .Bundle ;
13+ import android .os .Handler ;
1314import android .preference .EditTextPreference ;
1415import android .preference .Preference ;
1516import android .preference .PreferenceCategory ;
@@ -213,10 +214,15 @@ public void onPause() {
213214 public void onResume () {
214215 super .onResume ();
215216
216- // initialize settings with locally cached values, fetch remote on first pass
217- mSiteSettings .init (mShouldFetch );
218- // stop future calls from fetching remote settings
219- mShouldFetch = false ;
217+ new Handler ().postDelayed (new Runnable () {
218+ @ Override
219+ public void run () {
220+ // initialize settings with locally cached values, fetch remote on first pass
221+ mSiteSettings .init (mShouldFetch );
222+ // stop future calls from fetching remote settings
223+ mShouldFetch = false ;
224+ }
225+ }, 1000 );
220226 }
221227
222228 @ Override
You can’t perform that action at this time.
0 commit comments