9.0 设置显示最小,通知栏无法对齐

 [MT6763-9.0][SystemUI]Setting display is minimal, notification bar cannot be aligned

diff --git a/vendor/mediatek/proprietary/packages/apps/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java b/vendor/mediatek/proprietary/packages/apps/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java
old mode 100644
new mode 100755
index c8970e9220..a5b3d1e645
--- a/vendor/mediatek/proprietary/packages/apps/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java
+++ b/vendor/mediatek/proprietary/packages/apps/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java
@@ -495,6 +495,8 @@ public class NotificationPanelView extends PanelView implements
         if (mStatusBarState != StatusBarState.KEYGUARD) {
             stackScrollerPadding = (mQs != null ? mQs.getHeader().getHeight() : 0) + mQsPeekHeight
             +  mQsNotificationTopPadding;
+            //modify dengli 20191015
+            mNotificationStackScroller.setIntrinsicPadding(stackScrollerPadding);
         } else {
             int totalHeight = getHeight();
             int bottomPadding = Math.max(mIndicationBottomPadding, mAmbientIndicationBottomPadding);
@@ -516,11 +518,12 @@ public class NotificationPanelView extends PanelView implements
                     mClockPositionResult.clockY, CLOCK_ANIMATION_PROPERTIES, animateClock);
             updateClock();
             stackScrollerPadding = mClockPositionResult.stackScrollerPadding;
+            //modify dengli 20191015
+            mNotificationStackScroller.setIntrinsicPadding(stackScrollerPadding);
+            mNotificationStackScroller.setAntiBurnInOffsetX(mClockPositionResult.clockX);
+            mKeyguardBottomArea.setBurnInXOffset(mClockPositionResult.clockX);
+            //modify dengli 20191015
         }
-        mNotificationStackScroller.setIntrinsicPadding(stackScrollerPadding);
-        mNotificationStackScroller.setAntiBurnInOffsetX(mClockPositionResult.clockX);
-        mKeyguardBottomArea.setBurnInXOffset(mClockPositionResult.clockX);
-
         mStackScrollerMeasuringPass++;
         requestScrollerTopPaddingUpdate(animate);
         mStackScrollerMeasuringPass = 0;
 

你可能感兴趣的:(9.0 设置显示最小,通知栏无法对齐)