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
This commit is contained in:
Jorim Jaggi
2017-06-12 12:18:41 -07:00
parent 67b29d5d49
commit e3e0b06a12

View 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);
}
}