diff options
author | Romain Guy <romainguy@android.com> | 2009-07-17 16:36:31 -0700 |
---|---|---|
committer | Romain Guy <romainguy@android.com> | 2009-07-17 16:36:31 -0700 |
commit | 6e1fd5b2b0b79b8e97d458c40bc9ac1710c2852b (patch) | |
tree | c79caba7d87b75b33b842fdbc61a18d130bb475a /src/com/android/launcher | |
parent | 6da5b433c1b3d8b95371c418d4ab1aa88baa488c (diff) | |
download | android_packages_apps_Trebuchet-6e1fd5b2b0b79b8e97d458c40bc9ac1710c2852b.tar.gz android_packages_apps_Trebuchet-6e1fd5b2b0b79b8e97d458c40bc9ac1710c2852b.tar.bz2 android_packages_apps_Trebuchet-6e1fd5b2b0b79b8e97d458c40bc9ac1710c2852b.zip |
Prevents BadTokenException on rotation of the gestures window.
Diffstat (limited to 'src/com/android/launcher')
-rw-r--r-- | src/com/android/launcher/Launcher.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/launcher/Launcher.java b/src/com/android/launcher/Launcher.java index bf2be91d8..25ad4e575 100644 --- a/src/com/android/launcher/Launcher.java +++ b/src/com/android/launcher/Launcher.java @@ -601,11 +601,11 @@ public final class Launcher extends Activity implements View.OnClickListener, On mWorkspace.post(new Runnable() { public void run() { showGesturesPanel(false); - if (gesture != null) { + if (gesture != null && mWorkspace.getParent() != null) { mGesturesProcessor.matchGesture(gesture); mWorkspace.post(new Runnable() { public void run() { - if (gesture != null) { + if (gesture != null && mWorkspace.getParent() != null) { mGesturesOverlay.setGesture(gesture); } } |