Add guards for restoreInstanceState (issue 11982812)

Change-Id: Ic4c632a956130ab28843085490dc1badb39b0e8c
This commit is contained in:
Adam Cohen committed 2013-12-03 10:52:21 -08:00
1 parent b3084e87fc
commit b0ee08109e
2 files changed
+4 -2

No files matched your search

+3 -1
View File
@@ -4254,7 +4254,9 @@ public class Workspace extends SmoothPagedView
if (mSavedStates != null) {
mRestoredPages.add(child);
CellLayout cl = (CellLayout) getChildAt(child);
cl.restoreInstanceState(mSavedStates);
if (cl != null) {
cl.restoreInstanceState(mSavedStates);
}
}
}