Merge commit '7d4134a1a67872c056d05330b1453395a7c8c4d1' into eclair-mr2-plus-aosp * commit '7d4134a1a67872c056d05330b1453395a7c8c4d1': Fix possible NPE in the code that restores widgets' state.
This commit is contained in:
@@ -123,7 +123,8 @@ public class AppWidgetHostView extends FrameLayout {
|
||||
|
||||
@Override
|
||||
protected void dispatchRestoreInstanceState(SparseArray<Parcelable> container) {
|
||||
final ParcelableSparseArray jail = (ParcelableSparseArray) container.get(generateId());
|
||||
ParcelableSparseArray jail = (ParcelableSparseArray) container.get(generateId());
|
||||
if (jail == null) jail = new ParcelableSparseArray();
|
||||
super.dispatchRestoreInstanceState(jail);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user