am 52e8542d
: am 737e91ef
: Merge "Don\'t show the sort menu for running process list" into gingerbread
Merge commit '52e8542d9dfb9c0d9a3530df1d790a0275d27f31' * commit '52e8542d9dfb9c0d9a3530df1d790a0275d27f31': Don't show the sort menu for running process list
This commit is contained in:
@@ -614,6 +614,14 @@ public class ManageApplications extends TabActivity implements
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean onPrepareOptionsMenu(Menu menu) {
|
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_ALPHA).setVisible(mSortOrder != SORT_ORDER_ALPHA);
|
||||||
menu.findItem(SORT_ORDER_SIZE).setVisible(mSortOrder != SORT_ORDER_SIZE);
|
menu.findItem(SORT_ORDER_SIZE).setVisible(mSortOrder != SORT_ORDER_SIZE);
|
||||||
return true;
|
return true;
|
||||||
|
Reference in New Issue
Block a user