Android R 修改锁屏通知显示居中

frameworks / base/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelViewController.java

@@ -2653,7 +2653,8 @@ public class NotificationPanelViewController extends PanelViewController {
     }
 
     protected void setHorizontalPanelTranslation(float translation) {
-        mNotificationStackScroller.setTranslationX(translation);
+        mNotificationStackScroller.setTranslationX(0f);  //锁屏通知显示不居中
-         mQsFrame.setTranslationX(translation);
+        mQsFrame.setTranslationX(0f);
         int size = mVerticalTranslationListener.size();
         for (int i = 0; i < size; i++) {


你可能感兴趣的:(Android R 修改锁屏通知显示居中)