Only show "reset app preference" actionbar menu in app info
Because it doesn't make sense to show it in other types of app list view. Change-Id: Ia4f84812a6f0acc434f770b026e5ed550714087a Fix: 36110694 Test: robotests
This commit is contained in:
@@ -625,7 +625,6 @@ public class ManageApplications extends InstrumentedPreferenceFragment
|
||||
if (mOptionsMenu == null) {
|
||||
return;
|
||||
}
|
||||
final Context context = getActivity();
|
||||
mOptionsMenu.findItem(R.id.advanced).setVisible(false);
|
||||
|
||||
mOptionsMenu.findItem(R.id.sort_order_alpha).setVisible(mListType == LIST_TYPE_STORAGE
|
||||
@@ -637,6 +636,8 @@ public class ManageApplications extends InstrumentedPreferenceFragment
|
||||
&& mListType != LIST_TYPE_HIGH_POWER);
|
||||
mOptionsMenu.findItem(R.id.hide_system).setVisible(mShowSystem
|
||||
&& mListType != LIST_TYPE_HIGH_POWER);
|
||||
|
||||
mOptionsMenu.findItem(R.id.reset_app_preferences).setVisible(mListType == LIST_TYPE_MAIN);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Reference in New Issue
Block a user