From 384754453870d67650c75d3328804c5d14a3b6c1 Mon Sep 17 00:00:00 2001 From: Selim Cinek Date: Fri, 18 May 2018 11:11:46 -0700 Subject: 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 --- .../src/com/android/systemui/statusbar/StackScrollerDecorView.java | 4 ++++ .../com/android/systemui/statusbar/phone/NotificationPanelView.java | 2 +- .../systemui/statusbar/stack/NotificationStackScrollLayout.java | 4 ++-- 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() { -- cgit v1.2.3-59-g8ed1b