1
0
Fork 0
mirror of https://github.com/TeamNewPipe/NewPipe.git synced 2025-10-04 10:19:18 +02:00

make main page changes display emediatly

This commit is contained in:
Christian Schabesberger 2017-10-13 13:49:31 +02:00
parent 8e8d74b5b7
commit 23eeb4353d
5 changed files with 12 additions and 1 deletions

View file

@ -119,6 +119,12 @@ public class MainActivity extends AppCompatActivity implements HistoryListener {
});
}
if(sharedPreferences.getBoolean(Constants.KEY_MAIN_PAGE_CHANGE, false)) {
if (DEBUG) Log.d(TAG, "main page has changed, recreating main fragment...");
sharedPreferences.edit().putBoolean(Constants.KEY_MAIN_PAGE_CHANGE, false).apply();
NavigationHelper.openMainActivity(this);
}
}
@Override