Merge "Fix switching running/cached apps with memory bar"

This commit is contained in:
Amith Yamasani
2013-12-04 19:17:33 +00:00
committed by Gerrit Code Review
2 changed files with 7 additions and 0 deletions

View File

@@ -434,6 +434,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);
@@ -441,6 +444,9 @@ public class RunningProcessesView extends FrameLayout
@Override
public void onClick(View v) {
mAdapter.setShowBackground(false);
if (mOwner != null) {
mOwner.getActivity().invalidateOptionsMenu();
}
}
});