OSDN Git Service

Don't animate burn-in return when it wasn't applied.
authorFilip Gruszczynski <gruszczy@google.com>
Mon, 27 Jul 2015 22:28:29 +0000 (15:28 -0700)
committerFilip Gruszczynski <gruszczy@google.com>
Tue, 28 Jul 2015 01:22:13 +0000 (18:22 -0700)
commit41e6346b4cac3b096d0986d49e7ceb94a082bc7a
treec08186b9c5341cf5f486780a393aefaad9d800d7
parent78c0a0448ee3b5388d5892d2689aeebd50bac958
Don't animate burn-in return when it wasn't applied.

The burn-in protection return animation is performed based on the last
offset that was used, but it doesn't mean that such offset is currently
applied. Right after entering ambient mode no offset is applied, so if
we start a return animation using the last applied offset, it will cause
a shake. The animation will first shift from 0, 0 offset to the last
offset and then return again to 0, 0. This CL makes it not apply the
animation in that case.

Bug: 22519478
Change-Id: I5cb750b56e9715c6d9389136071a5e0fbafb047b
services/core/java/com/android/server/policy/BurnInProtectionHelper.java