diff options
author | Tracy Zhou <tracyzhou@google.com> | 2021-09-16 21:28:47 -0700 |
---|---|---|
committer | Tracy Zhou <tracyzhou@google.com> | 2021-09-17 12:11:25 -0700 |
commit | 3d458313ded35230135a1d0e984abae9c83d7eb6 (patch) | |
tree | dc5e6bca34b1ad454872856a60e964ff0d1980e3 /quickstep/src/com/android/launcher3/taskbar/TaskbarViewController.java | |
parent | d8bbdce598beed72c87cc18bca0c319fa9250776 (diff) |
Hide task bar icons when notification shade is expanded
Fixes: 199163951
Test: manual
Change-Id: Id2556aa5f08db55059c95d8c13cdc4d46b7d8c55
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) { |