From e3e0b06a12ee7ef17d07b34f26fa2a54ce4de6e0 Mon Sep 17 00:00:00 2001 From: Jorim Jaggi Date: Mon, 12 Jun 2017 12:18:41 -0700 Subject: Attempted fix for navigation bar flicker 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 --- .../src/com/android/systemui/keyguard/KeyguardViewMediator.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java b/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java index f745956d74ca..1ec52e77e411 100644 --- a/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java +++ b/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java @@ -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); } } -- cgit v1.2.3-59-g8ed1b