From 01e40198305d95b1e21bb62d9242b6dde8d98846 Mon Sep 17 00:00:00 2001 From: Selim Cinek Date: Thu, 12 May 2016 14:57:22 -0700 Subject: [PATCH] Fixed a screen flickering on tablets The background bounds were not correctly applied when an animation was running, leading to flickers of the scrim. Left and right should always be applied immediately. Change-Id: Iff9979d6e1c472a1dec20e76436a19a44c170cad Fixed: 28000150 --- .../statusbar/stack/NotificationStackScrollLayout.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayout.java b/packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayout.java index 1edaa0f6b68de..891353089b768 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayout.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayout.java @@ -1757,6 +1757,9 @@ public class NotificationStackScrollLayout extends ViewGroup } private void startBackgroundAnimation() { + // left and right are always instantly applied + mCurrentBounds.left = mBackgroundBounds.left; + mCurrentBounds.right = mBackgroundBounds.right; startBottomAnimation(); startTopAnimation(); }