Call onShow/onHide when visibility changes on -1 screen.

Bug: 10089616
Change-Id: I4365432d5ff699b3722ca3f30713e0c490d0e4ed
This commit is contained in:
Derek Prothro
2013-07-30 15:32:39 -04:00
parent 18350f2dc4
commit ce9249e4d3

View File

@@ -770,6 +770,13 @@ public class Workspace extends SmoothPagedView
protected void onWindowVisibilityChanged (int visibility) {
mLauncher.onWindowVisibilityChanged(visibility);
if (mCustomContentShowing && mCustomContentCallbacks != null) {
if (visibility == View.VISIBLE) {
mCustomContentCallbacks.onShow();
} else if (visibility == View.GONE) {
mCustomContentCallbacks.onHide();
}
}
}
@Override