mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 11:18:21 +00:00
Merge "Fix NPE" into ics-mr0
This commit is contained in:
@@ -246,7 +246,9 @@ public final class Launcher extends Activity
|
||||
|
||||
private Runnable mBuildLayersRunnable = new Runnable() {
|
||||
public void run() {
|
||||
mWorkspace.buildPageHardwareLayers();
|
||||
if (mWorkspace != null) {
|
||||
mWorkspace.buildPageHardwareLayers();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
@@ -1260,6 +1262,7 @@ public final class Launcher extends Activity
|
||||
// Remove all pending runnables
|
||||
mHandler.removeMessages(ADVANCE_MSG);
|
||||
mHandler.removeMessages(0);
|
||||
mWorkspace.removeCallbacks(mBuildLayersRunnable);
|
||||
|
||||
// Stop callbacks from LauncherModel
|
||||
LauncherApplication app = ((LauncherApplication) getApplication());
|
||||
|
||||
Reference in New Issue
Block a user