Loading packages/SystemUI/src/com/android/systemui/qs/QSContainer.java +13 −5 Original line number Diff line number Diff line Loading @@ -47,10 +47,10 @@ public class QSContainer extends FrameLayout { private final Rect mQsBounds = new Rect(); private int mHeightOverride = -1; private QSPanel mQSPanel; protected QSPanel mQSPanel; private QSDetail mQSDetail; protected BaseStatusBarHeader mHeader; private float mQsExpansion; protected float mQsExpansion; private boolean mQsExpanded; private boolean mHeaderAnimating; private boolean mKeyguardShowing; Loading Loading @@ -162,12 +162,16 @@ public class QSContainer extends FrameLayout { } private void updateBottom() { int height = calculateContainerHeight(); setBottom(getTop() + height); mQSDetail.setBottom(getTop() + height); } protected int calculateContainerHeight() { int heightOverride = mHeightOverride != -1 ? mHeightOverride : getMeasuredHeight(); int height = mQSCustomizer.isCustomizing() ? mQSCustomizer.getHeight() return mQSCustomizer.isCustomizing() ? mQSCustomizer.getHeight() : (int) (mQsExpansion * (heightOverride - mHeader.getCollapsedHeight())) + mHeader.getCollapsedHeight(); setBottom(getTop() + height); mQSDetail.setBottom(getTop() + height); } private void updateQsState() { Loading Loading @@ -302,4 +306,8 @@ public class QSContainer extends FrameLayout { updateQsState(); } }; public int getQsMinExpansionHeight() { return mHeader.getHeight(); } } packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java +1 −1 Original line number Diff line number Diff line Loading @@ -306,7 +306,7 @@ public class NotificationPanelView extends PanelView implements // Calculate quick setting heights. int oldMaxHeight = mQsMaxExpansionHeight; mQsMinExpansionHeight = mKeyguardShowing ? 0 : mQsContainer.getHeader().getHeight(); mQsMinExpansionHeight = mKeyguardShowing ? 0 : mQsContainer.getQsMinExpansionHeight(); mQsMaxExpansionHeight = mQsContainer.getDesiredHeight(); positionClockAndNotifications(); if (mQsExpanded && mQsFullyExpanded) { Loading packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayout.java +1 −1 Original line number Diff line number Diff line Loading @@ -299,7 +299,7 @@ public class NotificationStackScrollLayout extends ViewGroup setDimAmount((Float) animation.getAnimatedValue()); } }; private ViewGroup mQsContainer; protected ViewGroup mQsContainer; private boolean mContinuousShadowUpdate; private ViewTreeObserver.OnPreDrawListener mShadowUpdater = new ViewTreeObserver.OnPreDrawListener() { Loading Loading
packages/SystemUI/src/com/android/systemui/qs/QSContainer.java +13 −5 Original line number Diff line number Diff line Loading @@ -47,10 +47,10 @@ public class QSContainer extends FrameLayout { private final Rect mQsBounds = new Rect(); private int mHeightOverride = -1; private QSPanel mQSPanel; protected QSPanel mQSPanel; private QSDetail mQSDetail; protected BaseStatusBarHeader mHeader; private float mQsExpansion; protected float mQsExpansion; private boolean mQsExpanded; private boolean mHeaderAnimating; private boolean mKeyguardShowing; Loading Loading @@ -162,12 +162,16 @@ public class QSContainer extends FrameLayout { } private void updateBottom() { int height = calculateContainerHeight(); setBottom(getTop() + height); mQSDetail.setBottom(getTop() + height); } protected int calculateContainerHeight() { int heightOverride = mHeightOverride != -1 ? mHeightOverride : getMeasuredHeight(); int height = mQSCustomizer.isCustomizing() ? mQSCustomizer.getHeight() return mQSCustomizer.isCustomizing() ? mQSCustomizer.getHeight() : (int) (mQsExpansion * (heightOverride - mHeader.getCollapsedHeight())) + mHeader.getCollapsedHeight(); setBottom(getTop() + height); mQSDetail.setBottom(getTop() + height); } private void updateQsState() { Loading Loading @@ -302,4 +306,8 @@ public class QSContainer extends FrameLayout { updateQsState(); } }; public int getQsMinExpansionHeight() { return mHeader.getHeight(); } }
packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java +1 −1 Original line number Diff line number Diff line Loading @@ -306,7 +306,7 @@ public class NotificationPanelView extends PanelView implements // Calculate quick setting heights. int oldMaxHeight = mQsMaxExpansionHeight; mQsMinExpansionHeight = mKeyguardShowing ? 0 : mQsContainer.getHeader().getHeight(); mQsMinExpansionHeight = mKeyguardShowing ? 0 : mQsContainer.getQsMinExpansionHeight(); mQsMaxExpansionHeight = mQsContainer.getDesiredHeight(); positionClockAndNotifications(); if (mQsExpanded && mQsFullyExpanded) { Loading
packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayout.java +1 −1 Original line number Diff line number Diff line Loading @@ -299,7 +299,7 @@ public class NotificationStackScrollLayout extends ViewGroup setDimAmount((Float) animation.getAnimatedValue()); } }; private ViewGroup mQsContainer; protected ViewGroup mQsContainer; private boolean mContinuousShadowUpdate; private ViewTreeObserver.OnPreDrawListener mShadowUpdater = new ViewTreeObserver.OnPreDrawListener() { Loading