* commit '531a5c324e20b354a674851fd4808c105a80af3a': Add guards for restoreInstanceState (issue 11982812)
This commit is contained in:
@@ -2298,7 +2298,7 @@ public class LauncherModel extends BroadcastReceiver {
|
||||
r = new Runnable() {
|
||||
public void run() {
|
||||
Callbacks callbacks = tryGetCallbacks(oldCallbacks);
|
||||
if (callbacks != null) {
|
||||
if (callbacks != null && currentScreen >= 0) {
|
||||
callbacks.onPageBoundSynchronously(currentScreen);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4264,7 +4264,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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user