summaryrefslogtreecommitdiffstats
path: root/src/com
diff options
context:
space:
mode:
authorDerek Prothro <dprothro@google.com>2013-07-30 15:32:39 -0400
committerDerek Prothro <dprothro@google.com>2013-07-30 15:40:07 -0400
commitce9249e4d31dab2a2436e5bcb4488ed7497d481c (patch)
tree20a415cd1b10d127e095cec0149f1033a635c4c9 /src/com
parent18350f2dc483a92429f0b35c15ffd33a8ae41098 (diff)
downloadandroid_packages_apps_Trebuchet-ce9249e4d31dab2a2436e5bcb4488ed7497d481c.tar.gz
android_packages_apps_Trebuchet-ce9249e4d31dab2a2436e5bcb4488ed7497d481c.tar.bz2
android_packages_apps_Trebuchet-ce9249e4d31dab2a2436e5bcb4488ed7497d481c.zip
Call onShow/onHide when visibility changes on -1 screen.
Bug: 10089616 Change-Id: I4365432d5ff699b3722ca3f30713e0c490d0e4ed
Diffstat (limited to 'src/com')
-rw-r--r--src/com/android/launcher3/Workspace.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/com/android/launcher3/Workspace.java b/src/com/android/launcher3/Workspace.java
index 91f539689..b14ceb248 100644
--- a/src/com/android/launcher3/Workspace.java
+++ b/src/com/android/launcher3/Workspace.java
@@ -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