Merge "Fixing onRestoreInstanceState crash in Launcher" into jb-mr1-dev

This commit is contained in:
Adam Cohen
2012-09-21 17:11:37 -07:00
committed by Android (Google) Code Review

View File

@@ -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);
}
}
/**