summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Winson Chung <winsonc@google.com> 2013-04-19 14:25:58 -0700
committer Winson Chung <winsonc@google.com> 2013-04-19 14:25:58 -0700
commit6168317f31d45cb4dad9d24d4b68cf6e7c40565a (patch)
tree742050be629e7264dcc97736717cd21121b1db18
parent8fbe05fb8686142f4f594034b984329d04214b7e (diff)
parent7b2ad857a8a88c0688224d7236ba171f11cda586 (diff)
resolved conflicts for merge of 7b2ad857 to master
Change-Id: I72472e56b2303aa6ccabd784fadc7da4eabcb0e8
-rw-r--r--packages/Keyguard/src/com/android/keyguard/KeyguardHostView.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/packages/Keyguard/src/com/android/keyguard/KeyguardHostView.java b/packages/Keyguard/src/com/android/keyguard/KeyguardHostView.java
index c54d9a711436..bdc25d974408 100644
--- a/packages/Keyguard/src/com/android/keyguard/KeyguardHostView.java
+++ b/packages/Keyguard/src/com/android/keyguard/KeyguardHostView.java
@@ -1587,7 +1587,13 @@ public class KeyguardHostView extends KeyguardViewBase {
@Override
public void cleanUp() {
-
+ // Make sure we let go of all widgets and their package contexts promptly. If we don't do
+ // this, and the associated application is uninstalled, it can cause a soft reboot.
+ int count = mAppWidgetContainer.getChildCount();
+ for (int i = 0; i < count; i++) {
+ KeyguardWidgetFrame frame = mAppWidgetContainer.getWidgetPageAt(i);
+ frame.removeAllViews();
+ }
}
/**