Merge "Don't show the sort menu for running process list" into gingerbread

This commit is contained in:
Kenny Root
2010-10-12 12:25:34 -07:00
committed by Android (Google) Code Review

View File

@@ -614,6 +614,14 @@ public class ManageApplications extends TabActivity implements
@Override
public boolean onPrepareOptionsMenu(Menu menu) {
/*
* The running processes screen doesn't use the mApplicationsAdapter
* so bringing up this menu in that case doesn't make any sense.
*/
if (mCurView == VIEW_RUNNING) {
return false;
}
menu.findItem(SORT_ORDER_ALPHA).setVisible(mSortOrder != SORT_ORDER_ALPHA);
menu.findItem(SORT_ORDER_SIZE).setVisible(mSortOrder != SORT_ORDER_SIZE);
return true;