diff options
| author | 2013-09-23 15:43:07 -0700 | |
|---|---|---|
| committer | 2013-09-26 15:09:28 -0700 | |
| commit | 1de95fb42b97de8e89ce8082dc3860aae238fe2a (patch) | |
| tree | dfe08527ba0baf346d9fdd1074626773e56ce689 | |
| parent | 1962e264660b37b7e386eb2ac84fc915dd7c75dd (diff) | |
Remove unused views when we return to keyguard
This fixes a bug where launching the camera would move
the camera view to the root hierarchy.  In insecure mode, a
subsequent dismiss() comes in and tears down the view hierachy
before the event can be processed, which left the view in the
root hierarchy.
The fix is to remove all children when we reconstruct keyguard.
Fixes bug 10640209
Change-Id: Ia67a93cd219d2b906b6e3bdd04cc355eeffe857e
| -rw-r--r-- | packages/Keyguard/src/com/android/keyguard/KeyguardViewManager.java | 1 | 
1 files changed, 1 insertions, 0 deletions
diff --git a/packages/Keyguard/src/com/android/keyguard/KeyguardViewManager.java b/packages/Keyguard/src/com/android/keyguard/KeyguardViewManager.java index a0e44d75247c..31503b027398 100644 --- a/packages/Keyguard/src/com/android/keyguard/KeyguardViewManager.java +++ b/packages/Keyguard/src/com/android/keyguard/KeyguardViewManager.java @@ -285,6 +285,7 @@ public class KeyguardViewManager {          }          if (force || mKeyguardView == null) { +            mKeyguardHost.removeAllViews();              inflateKeyguardView(options);              mKeyguardView.requestFocus();          }  |