Merge "Fix NPE" into jb-dev

This commit is contained in:
Michael Jurka
2012-06-11 16:48:42 -07:00
committed by Android (Google) Code Review
+2 -2
View File
@@ -2488,7 +2488,7 @@ public final class Launcher extends Activity
setPivotsForZoom(toView, scale);
dispatchOnLauncherTransitionStart(fromView, animated, false);
dispatchOnLauncherTransitionStart(toView, animated, false);
mWorkspace.post(new Runnable() {
toView.post(new Runnable() {
public void run() {
// Check that mStateAnimation hasn't changed while
// we waited for a layout/draw pass
@@ -2502,7 +2502,7 @@ public final class Launcher extends Activity
if (delayAnim) {
final OnGlobalLayoutListener delayedStart = new OnGlobalLayoutListener() {
public void onGlobalLayout() {
mWorkspace.post(startAnimRunnable);
toView.post(startAnimRunnable);
observer.removeOnGlobalLayoutListener(this);
}
};