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

@@ -413,6 +413,9 @@ public class RunningProcessesView extends FrameLayout
@Override
public void onClick(View v) {
mAdapter.setShowBackground(true);
if (mOwner != null) {
mOwner.getActivity().invalidateOptionsMenu();
}
}
});
mForegroundProcessText = (TextView)findViewById(R.id.foregroundText);
@@ -420,6 +423,9 @@ public class RunningProcessesView extends FrameLayout
@Override
public void onClick(View v) {
mAdapter.setShowBackground(false);
if (mOwner != null) {
mOwner.getActivity().invalidateOptionsMenu();
}
}
});