diff options
author | Adam Cohen <adamcohen@google.com> | 2012-09-21 16:09:34 -0700 |
---|---|---|
committer | Adam Cohen <adamcohen@google.com> | 2012-09-21 16:56:51 -0700 |
commit | 6ccf4e279170ef7f7602d1e2a63e9a2ef98cd57f (patch) | |
tree | 303ebf18ded86abde71df06236ffccd1dd70939d /core/java/android/appwidget | |
parent | 5ce25d717059c9c37618aa349314077f99ac34c7 (diff) | |
download | frameworks_base-6ccf4e279170ef7f7602d1e2a63e9a2ef98cd57f.zip frameworks_base-6ccf4e279170ef7f7602d1e2a63e9a2ef98cd57f.tar.gz frameworks_base-6ccf4e279170ef7f7602d1e2a63e9a2ef98cd57f.tar.bz2 |
Fixing onRestoreInstanceState crash in Launcher
-> Issue 7084152
Change-Id: Ic91074adfff5918e6471c861313a51d0a179ad08
Diffstat (limited to 'core/java/android/appwidget')
-rw-r--r-- | core/java/android/appwidget/AppWidgetHostView.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/core/java/android/appwidget/AppWidgetHostView.java b/core/java/android/appwidget/AppWidgetHostView.java index c86826f..f258f17 100644 --- a/core/java/android/appwidget/AppWidgetHostView.java +++ b/core/java/android/appwidget/AppWidgetHostView.java @@ -226,7 +226,12 @@ public class AppWidgetHostView extends FrameLayout { if (jail == null) jail = new ParcelableSparseArray(); - super.dispatchRestoreInstanceState(jail); + try { + super.dispatchRestoreInstanceState(jail); + } catch (Exception e) { + Log.e(TAG, "failed to restoreInstanceState for widget id: " + mAppWidgetId + ", " + + (mInfo == null ? "null" : mInfo.provider), e); + } } /** |