Prevents BadTokenException on rotation of the gestures window.
This commit is contained in:
1 parent
6da5b433c1
commit
6e1fd5b2b0
1 file changed
+2
-2
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user