am 172cb769: Merge "Fixing onRestoreInstanceState crash in Launcher" into jb-mr1-dev

* commit '172cb769641c828d7ad20669a5f7c9533248382f':
  Fixing onRestoreInstanceState crash in Launcher
This commit is contained in:
Adam Cohen
2012-09-21 17:15:45 -07:00
committed by Android Git Automerger

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