OSDN Git Service

Attempted fix for navigation bar flicker
authorJorim Jaggi <jjaggi@google.com>
Mon, 12 Jun 2017 19:18:41 +0000 (12:18 -0700)
committerJorim Jaggi <jjaggi@google.com>
Mon, 12 Jun 2017 19:21:55 +0000 (12:21 -0700)
Not 100% sure why it was flickering, but I do know that the
flicker started happening after putting this into a separate
thread, and that with that change it doesn't flicker anymore,
ever.

Adds 0.5ms while unlocking but at this point this is a good trade-
off to make.

Test: Unlock device with FP
Change-Id: I736a3c64d9b63df9d6cdcb7855bde13a19560a83
Fixes: 62380221

packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java

index f745956..1ec52e7 100644 (file)
@@ -1864,12 +1864,7 @@ public class KeyguardViewMediator extends SystemUI {
                         + " isSecure=" + isSecure() + " --> flags=0x" + Integer.toHexString(flags));
             }
 
-            if (!(mContext instanceof Activity)) {
-                final int finalFlags = flags;
-                mUiOffloadThread.submit(() -> {
-                    mStatusBarManager.disable(finalFlags);
-                });
-            }
+            mStatusBarManager.disable(flags);
         }
     }