Settings: Allow to quickly open Running Services from meminfo view

@/neobuddy89: Updated for A14.

Change-Id: I252ce85bda3daab5c5e4db097a6fd743365bc309
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
This commit is contained in:
ezio84
2017-02-03 00:26:51 +01:00
committed by Joey
parent 043f9a0bf6
commit ec7587d465
5 changed files with 35 additions and 0 deletions

View File

@@ -112,6 +112,12 @@ public class RunningServices extends SettingsPreferenceFragment implements
boolean showingBackground = mRunningProcessesView.mAdapter.getShowBackground();
mOptionsMenu.findItem(SHOW_RUNNING_SERVICES).setVisible(showingBackground);
mOptionsMenu.findItem(SHOW_BACKGROUND_PROCESSES).setVisible(!showingBackground);
if (!showingBackground) {
getActivity().setTitle(com.android.settingslib.R.string.runningservices_settings_title);
} else {
getActivity().setTitle(R.string.background_processes_settings_title);
}
}
@Override