diff options
| author | 2018-05-18 19:34:13 +0000 | |
|---|---|---|
| committer | 2018-05-18 19:34:13 +0000 | |
| commit | 95784b24b676621ecb1f3dbdb053518f52f95461 (patch) | |
| tree | c3de76f3886d660feff0630e277a476f9d80a9a4 | |
| parent | 62e90c7863a1e2f9608da2fc8c4134af4fd5aced (diff) | |
| parent | 384754453870d67650c75d3328804c5d14a3b6c1 (diff) | |
Merge "Fixed an issue where the clear all expansion wasn't smooth" into pi-dev
3 files changed, 7 insertions, 3 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/StackScrollerDecorView.java b/packages/SystemUI/src/com/android/systemui/statusbar/StackScrollerDecorView.java index f27ab9e8a661..c5b35607df42 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 abstract class StackScrollerDecorView extends ExpandableView { } } + 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 a3905b7fa7f1..2f18aad9612d 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 @@ public class NotificationPanelView extends PanelView implements @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 dc4b697cbdbe..bd56d7941a29 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 @@ public class NotificationStackScrollLayout extends ViewGroup && !mFooterView.willBeGone(); } - public boolean isFooterViewVisible() { - return mFooterView != null && mFooterView.isVisible(); + public boolean isFooterViewContentVisible() { + return mFooterView != null && mFooterView.isContentVisible(); } public int getFooterViewHeight() { |