Android P SystemUI下拉时,状态栏和通知栏显示位置不一致。

--- 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
@@ -2489,7 +2489,7 @@ public class NotificationPanelView extends PanelView implements
 
     protected void setVerticalPanelTranslation(float translation) {
         mNotificationStackScroller.setTranslationX(translation);
-        mQsFrame.setTranslationX(translation);
+        //mQsFrame.setTranslationX(translation);//使状态栏和通知栏都是居中显示。
         int size = mVerticalTranslationListener.size();
         for (int i = 0; i < size; i++) {
             mVerticalTranslationListener.get(i).run();

你可能感兴趣的:(Android P SystemUI下拉时,状态栏和通知栏显示位置不一致。)