commit | 384754453870d67650c75d3328804c5d14a3b6c1 | [log] [tgz] |
---|---|---|
author | Selim Cinek <cinek@google.com> | Fri May 18 11:11:46 2018 -0700 |
committer | Selim Cinek <cinek@google.com> | Fri May 18 18:16:03 2018 +0000 |
tree | 62a870080c6754eb82e458716f77c30355d4f246 | |
parent | 03ca09dac1c656544e4b93ec393023f01d0f68dc [diff] |
Fixed an issue where the clear all expansion wasn't smooth Test: add notification that is clearable, observe nice slowing down when expanding Change-Id: I2fedb78c605fc72eaf3e8204fef1d493ced71eea Fixes: 78861878
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/StackScrollerDecorView.java b/packages/SystemUI/src/com/android/systemui/statusbar/StackScrollerDecorView.java index f27ab9e..c5b3560 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/StackScrollerDecorView.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/StackScrollerDecorView.java
@@ -94,6 +94,10 @@ } } + public boolean isContentVisible() { + return mContentVisible; + } + /** * Make this view visible. If {@code false} is passed, the view will fade out it's content * and set the view Visibility to GONE. If only the content should be changed
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java index a3905b7..2f18aad9 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java
@@ -2199,7 +2199,7 @@ @Override protected boolean isClearAllVisible() { - return mNotificationStackScroller.isFooterViewVisible(); + return mNotificationStackScroller.isFooterViewContentVisible(); } @Override
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayout.java b/packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayout.java index dc4b697..bd56d79 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayout.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayout.java
@@ -4117,8 +4117,8 @@ && !mFooterView.willBeGone(); } - public boolean isFooterViewVisible() { - return mFooterView != null && mFooterView.isVisible(); + public boolean isFooterViewContentVisible() { + return mFooterView != null && mFooterView.isContentVisible(); } public int getFooterViewHeight() {