From: Lucas Dupin Date: Tue, 26 Jun 2018 22:58:51 +0000 (-0700) Subject: Set initial KSV state after inflation X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=f7fd03d1bd2a554069d7cb5e7c35d6dc2899e46b;p=android-x86%2Fframeworks-base.git Set initial KSV state after inflation In O and before, KeyguardSecurityVew#reset was always called before showing the view. In P it's not possible since reset() will make a series of binder calls and generate jank during swipe gesture. Because of this, reset() is called after inflation and only after the view isn't visible anymore. Fixes: 109972705 Test: go/sysui-bouncer-tests Test: receive notification from AOD, double tap it. Change-Id: I9016924398930d470135851ba40c85f637a2c0d1 --- diff --git a/packages/SystemUI/src/com/android/keyguard/KeyguardSecurityContainer.java b/packages/SystemUI/src/com/android/keyguard/KeyguardSecurityContainer.java index 1942fc1306c0..745f81d55e31 100644 --- a/packages/SystemUI/src/com/android/keyguard/KeyguardSecurityContainer.java +++ b/packages/SystemUI/src/com/android/keyguard/KeyguardSecurityContainer.java @@ -143,6 +143,7 @@ public class KeyguardSecurityContainer extends FrameLayout implements KeyguardSe mSecurityViewFlipper.addView(v); updateSecurityView(v); view = (KeyguardSecurityView)v; + view.reset(); } return view;