am 6e1fd5b2: Prevents BadTokenException on rotation of the gestures window.
Merge commit '6e1fd5b2b0b79b8e97d458c40bc9ac1710c2852b'
* commit '6e1fd5b2b0b79b8e97d458c40bc9ac1710c2852b':
Prevents BadTokenException on rotation of the gestures window.
diff --git a/src/com/android/launcher/Launcher.java b/src/com/android/launcher/Launcher.java
index bf2be91..25ad4e5 100644
--- a/src/com/android/launcher/Launcher.java
+++ b/src/com/android/launcher/Launcher.java
@@ -601,11 +601,11 @@
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);
}
}