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:
parent
8e8d74b5b7
commit
23eeb4353d
5 changed files with 12 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue