Fix switching running/cached apps with memory bar

Fixes issue #38735.

Invalidate the owner fragment options menu when changing mode from within
RunningProcessesView.

Change-Id: I85af7a953a1f4f570902f0959ee284f208871bce
This commit is contained in:
Thiago Vinícius Freire de Araújo Ribeiro
2012-11-01 22:16:15 -03:00
parent f9a2f324d7
commit eca1fc2cad
2 changed files with 7 additions and 0 deletions

View File

@@ -1047,6 +1047,7 @@ public class ManageApplications extends Fragment implements
mOptionsMenu.findItem(SHOW_RUNNING_SERVICES).setVisible(showingBackground);
mOptionsMenu.findItem(SHOW_BACKGROUND_PROCESSES).setVisible(!showingBackground);
mOptionsMenu.findItem(RESET_APP_PREFERENCES).setVisible(false);
mShowBackground = showingBackground;
} else {
mOptionsMenu.findItem(SORT_ORDER_ALPHA).setVisible(mSortOrder != SORT_ORDER_ALPHA);
mOptionsMenu.findItem(SORT_ORDER_SIZE).setVisible(mSortOrder != SORT_ORDER_SIZE);