kopia lustrzana https://github.com/TeamNewPipe/NewPipe
rodzic
6968dd266a
commit
d65b8d7d18
|
@ -453,15 +453,9 @@ public class MainActivity extends AppCompatActivity {
|
|||
NavigationHelper.openMainActivity(this);
|
||||
}
|
||||
|
||||
if (sharedPreferences.getBoolean(Constants.KEY_ENABLE_WATCH_HISTORY, true)) {
|
||||
if (DEBUG) Log.d(TAG, "do not show History-menu as its disabled in settings");
|
||||
drawerItems.getMenu().findItem(ITEM_ID_HISTORY).setVisible(true);
|
||||
}
|
||||
|
||||
if (!sharedPreferences.getBoolean(Constants.KEY_ENABLE_WATCH_HISTORY, true)) {
|
||||
if (DEBUG) Log.d(TAG, "show History-menu as its enabled in settings");
|
||||
drawerItems.getMenu().findItem(ITEM_ID_HISTORY).setVisible(false);
|
||||
}
|
||||
final boolean isHistoryEnabled = sharedPreferences.getBoolean(
|
||||
getString(R.string.enable_watch_history_key), true);
|
||||
drawerItems.getMenu().findItem(ITEM_ID_HISTORY).setVisible(isHistoryEnabled);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -11,7 +11,5 @@ public class Constants {
|
|||
public static final String KEY_THEME_CHANGE = "key_theme_change";
|
||||
public static final String KEY_MAIN_PAGE_CHANGE = "key_main_page_change";
|
||||
|
||||
public static final String KEY_ENABLE_WATCH_HISTORY = "enable_watch_history";
|
||||
|
||||
public static final int NO_SERVICE_ID = -1;
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue