From 3e9d9b5953113787336ff42c842b49e6e591b26e Mon Sep 17 00:00:00 2001 From: Jorim Jaggi Date: Wed, 5 Nov 2014 15:06:58 +0100 Subject: [PATCH] Fix janky in transition doze -> lockscreen Also fix some unnecessary layer creation for dismiss button. Bug: 18238168 Change-Id: I71989f2a24162e4453781c07e50d6c25fb380089 --- .../android/systemui/statusbar/DismissViewImageButton.java | 5 +++++ .../com/android/systemui/statusbar/phone/PhoneStatusBar.java | 2 -- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/DismissViewImageButton.java b/packages/SystemUI/src/com/android/systemui/statusbar/DismissViewImageButton.java index d55b0b3ac4674..35fd688319ad8 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/DismissViewImageButton.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/DismissViewImageButton.java @@ -61,4 +61,9 @@ public class DismissViewImageButton extends ImageButton { outRect.top += translationY; outRect.bottom += translationY; } + + @Override + public boolean hasOverlappingRendering() { + return false; + } } diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java index fc7081b1598ff..c06d7f85b7882 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java @@ -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)) {