am 94449158: Avoid NPE from delayed Runnable
* commit '944491587e8a8f77233a1916cc16cd07edd97f2e': Avoid NPE from delayed Runnable
This commit is contained in:
@@ -3952,9 +3952,11 @@ public class Launcher extends Activity
|
||||
// when we are loading right after we return to launcher.
|
||||
mWorkspace.postDelayed(new Runnable() {
|
||||
public void run() {
|
||||
mWorkspace.snapToPage(newScreenIndex);
|
||||
mWorkspace.postDelayed(startBounceAnimRunnable,
|
||||
NEW_APPS_ANIMATION_DELAY);
|
||||
if (mWorkspace != null) {
|
||||
mWorkspace.snapToPage(newScreenIndex);
|
||||
mWorkspace.postDelayed(startBounceAnimRunnable,
|
||||
NEW_APPS_ANIMATION_DELAY);
|
||||
}
|
||||
}
|
||||
}, NEW_APPS_PAGE_MOVE_DELAY);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user