Loading packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationStackScrollLayout.java +6 −2 Original line number Diff line number Diff line Loading @@ -535,6 +535,7 @@ public class NotificationStackScrollLayout extends ViewGroup implements ScrollAd private float mLastSentAppear; private float mLastSentExpandedHeight; private boolean mWillExpand; private int mGapHeight; private int mWaterfallTopInset; Loading Loading @@ -1060,6 +1061,7 @@ public class NotificationStackScrollLayout extends ViewGroup implements ScrollAd Resources res = context.getResources(); mCollapsedSize = res.getDimensionPixelSize(R.dimen.notification_min_height); mGapHeight = res.getDimensionPixelSize(R.dimen.notification_section_divider_height); mStackScrollAlgorithm.initView(context); mAmbientState.reload(context); mPaddingBetweenElements = Math.max(1, Loading Loading @@ -5099,8 +5101,10 @@ public class NotificationStackScrollLayout extends ViewGroup implements ScrollAd } @ShadeViewRefactor(RefactorComponent.SHADE_VIEW) public int getFooterViewHeight() { return mFooterView == null ? 0 : mFooterView.getHeight() + mPaddingBetweenElements; public int getFooterViewHeightWithPadding() { return mFooterView == null ? 0 : mFooterView.getHeight() + mPaddingBetweenElements + mGapHeight; } @ShadeViewRefactor(RefactorComponent.SHADE_VIEW) Loading packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelViewController.java +2 −2 Original line number Diff line number Diff line Loading @@ -2397,8 +2397,8 @@ public class NotificationPanelViewController extends PanelViewController { } @Override protected int getClearAllHeight() { return mNotificationStackScroller.getFooterViewHeight(); protected int getClearAllHeightWithPadding() { return mNotificationStackScroller.getFooterViewHeightWithPadding(); } @Override Loading packages/SystemUI/src/com/android/systemui/statusbar/phone/PanelViewController.java +4 −4 Original line number Diff line number Diff line Loading @@ -537,9 +537,9 @@ public abstract class PanelViewController { // the animation only to the last notification, and then jump to the maximum panel height so // clear all just fades in and the decelerating motion is towards the last notification. final boolean clearAllExpandHack = expand && shouldExpandToTopOfClearAll(getMaxPanelHeight() - getClearAllHeight()); shouldExpandToTopOfClearAll(getMaxPanelHeight() - getClearAllHeightWithPadding()); if (clearAllExpandHack) { target = getMaxPanelHeight() - getClearAllHeight(); target = getMaxPanelHeight() - getClearAllHeightWithPadding(); } if (target == mExpandedHeight || getOverExpansionAmount() > 0f && expand) { notifyExpandingFinished(); Loading Loading @@ -1030,9 +1030,9 @@ public abstract class PanelViewController { protected abstract boolean isClearAllVisible(); /** * @return the height of the clear all button, in pixels * @return the height of the clear all button, in pixels including padding */ protected abstract int getClearAllHeight(); protected abstract int getClearAllHeightWithPadding(); public void setHeadsUpManager(HeadsUpManagerPhone headsUpManager) { mHeadsUpManager = headsUpManager; Loading Loading
packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationStackScrollLayout.java +6 −2 Original line number Diff line number Diff line Loading @@ -535,6 +535,7 @@ public class NotificationStackScrollLayout extends ViewGroup implements ScrollAd private float mLastSentAppear; private float mLastSentExpandedHeight; private boolean mWillExpand; private int mGapHeight; private int mWaterfallTopInset; Loading Loading @@ -1060,6 +1061,7 @@ public class NotificationStackScrollLayout extends ViewGroup implements ScrollAd Resources res = context.getResources(); mCollapsedSize = res.getDimensionPixelSize(R.dimen.notification_min_height); mGapHeight = res.getDimensionPixelSize(R.dimen.notification_section_divider_height); mStackScrollAlgorithm.initView(context); mAmbientState.reload(context); mPaddingBetweenElements = Math.max(1, Loading Loading @@ -5099,8 +5101,10 @@ public class NotificationStackScrollLayout extends ViewGroup implements ScrollAd } @ShadeViewRefactor(RefactorComponent.SHADE_VIEW) public int getFooterViewHeight() { return mFooterView == null ? 0 : mFooterView.getHeight() + mPaddingBetweenElements; public int getFooterViewHeightWithPadding() { return mFooterView == null ? 0 : mFooterView.getHeight() + mPaddingBetweenElements + mGapHeight; } @ShadeViewRefactor(RefactorComponent.SHADE_VIEW) Loading
packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelViewController.java +2 −2 Original line number Diff line number Diff line Loading @@ -2397,8 +2397,8 @@ public class NotificationPanelViewController extends PanelViewController { } @Override protected int getClearAllHeight() { return mNotificationStackScroller.getFooterViewHeight(); protected int getClearAllHeightWithPadding() { return mNotificationStackScroller.getFooterViewHeightWithPadding(); } @Override Loading
packages/SystemUI/src/com/android/systemui/statusbar/phone/PanelViewController.java +4 −4 Original line number Diff line number Diff line Loading @@ -537,9 +537,9 @@ public abstract class PanelViewController { // the animation only to the last notification, and then jump to the maximum panel height so // clear all just fades in and the decelerating motion is towards the last notification. final boolean clearAllExpandHack = expand && shouldExpandToTopOfClearAll(getMaxPanelHeight() - getClearAllHeight()); shouldExpandToTopOfClearAll(getMaxPanelHeight() - getClearAllHeightWithPadding()); if (clearAllExpandHack) { target = getMaxPanelHeight() - getClearAllHeight(); target = getMaxPanelHeight() - getClearAllHeightWithPadding(); } if (target == mExpandedHeight || getOverExpansionAmount() > 0f && expand) { notifyExpandingFinished(); Loading Loading @@ -1030,9 +1030,9 @@ public abstract class PanelViewController { protected abstract boolean isClearAllVisible(); /** * @return the height of the clear all button, in pixels * @return the height of the clear all button, in pixels including padding */ protected abstract int getClearAllHeight(); protected abstract int getClearAllHeightWithPadding(); public void setHeadsUpManager(HeadsUpManagerPhone headsUpManager) { mHeadsUpManager = headsUpManager; Loading