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:
parent
f9a2f324d7
commit
eca1fc2cad
@@ -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();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user