mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 18:58:19 +00:00
Call onShow/onHide when visibility changes on -1 screen.
Bug: 10089616 Change-Id: I4365432d5ff699b3722ca3f30713e0c490d0e4ed
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user