OSDN Git Service

Fix janky in transition doze -> lockscreen
authorJorim Jaggi <jjaggi@google.com>
Wed, 5 Nov 2014 14:06:58 +0000 (15:06 +0100)
committerJorim Jaggi <jjaggi@google.com>
Wed, 5 Nov 2014 14:08:15 +0000 (15:08 +0100)
Also fix some unnecessary layer creation for dismiss button.

Bug: 18238168
Change-Id: I71989f2a24162e4453781c07e50d6c25fb380089

packages/SystemUI/src/com/android/systemui/statusbar/DismissViewImageButton.java
packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java

index d55b0b3..35fd688 100644 (file)
@@ -61,4 +61,9 @@ public class DismissViewImageButton extends ImageButton {
         outRect.top += translationY;
         outRect.bottom += translationY;
     }
+
+    @Override
+    public boolean hasOverlappingRendering() {
+        return false;
+    }
 }
index fc7081b..c06d7f8 100644 (file)
@@ -3071,8 +3071,6 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode,
             }
             else if (Intent.ACTION_SCREEN_ON.equals(action)) {
                 mScreenOn = true;
-                // work around problem where mDisplay.getRotation() is not stable while screen is off (bug 7086018)
-                repositionNavigationBar();
                 notifyNavigationBarScreenOn(true);
             }
             else if (ACTION_DEMO.equals(action)) {