diff options
Diffstat (limited to 'quickstep/src/com/android/launcher3/taskbar/TaskbarViewController.java')
-rw-r--r-- | quickstep/src/com/android/launcher3/taskbar/TaskbarViewController.java | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/quickstep/src/com/android/launcher3/taskbar/TaskbarViewController.java b/quickstep/src/com/android/launcher3/taskbar/TaskbarViewController.java index f359a3dbaa..4cd681428a 100644 --- a/quickstep/src/com/android/launcher3/taskbar/TaskbarViewController.java +++ b/quickstep/src/com/android/launcher3/taskbar/TaskbarViewController.java @@ -49,7 +49,8 @@ public class TaskbarViewController { public static final int ALPHA_INDEX_KEYGUARD = 2; public static final int ALPHA_INDEX_STASH = 3; public static final int ALPHA_INDEX_RECENTS_DISABLED = 4; - private static final int NUM_ALPHA_CHANNELS = 5; + public static final int ALPHA_INDEX_NOTIFICATION_EXPANDED = 5; + private static final int NUM_ALPHA_CHANNELS = 6; private final TaskbarActivityContext mActivity; private final TaskbarView mTaskbarView; @@ -107,6 +108,16 @@ public class TaskbarViewController { } /** + * Should be called when the notification shade is expanded, so we can hide taskbar icons as + * well. Note that we are animating icons to appear / disappear. + */ + public void setNotificationShadeIsExpanded(boolean isNotificationShadeExpanded) { + mTaskbarIconAlpha.getProperty(ALPHA_INDEX_NOTIFICATION_EXPANDED) + .animateToValue(isNotificationShadeExpanded ? 0 : 1) + .start(); + } + + /** * Should be called when the recents button is disabled, so we can hide taskbar icons as well. */ public void setRecentsButtonDisabled(boolean isDisabled) { |