summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWinson Chung <winsonc@google.com>2012-04-27 15:41:00 -0700
committerWinson Chung <winsonc@google.com>2012-04-27 15:42:43 -0700
commitac08f4b93e075fd90c8689509ad3108284a717d8 (patch)
tree1ce1cb9aa61b03bfd9d089df9375e4957b641008
parent727f0e1292dccc1916c7e3d54ff70385ae329108 (diff)
downloadpackages_apps_trebuchet-ac08f4b93e075fd90c8689509ad3108284a717d8.zip
packages_apps_trebuchet-ac08f4b93e075fd90c8689509ad3108284a717d8.tar.gz
packages_apps_trebuchet-ac08f4b93e075fd90c8689509ad3108284a717d8.tar.bz2
Fixing issue where you can not swipe AllApps while transitioning to AllApps. (Bug 6389985)
Change-Id: Idce57a6a3fffffa800d33c1b5b528d36174bb511
-rw-r--r--src/com/android/launcher2/AppsCustomizeTabHost.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/com/android/launcher2/AppsCustomizeTabHost.java b/src/com/android/launcher2/AppsCustomizeTabHost.java
index 01c08c9..50c80aa 100644
--- a/src/com/android/launcher2/AppsCustomizeTabHost.java
+++ b/src/com/android/launcher2/AppsCustomizeTabHost.java
@@ -164,8 +164,9 @@ public class AppsCustomizeTabHost extends TabHost implements LauncherTransitiona
}
public boolean onInterceptTouchEvent(MotionEvent ev) {
- // If we are mid transition then intercept touch events here so we can ignore them
- if (mInTransition) {
+ // If we are mid transitioning to the workspace, then intercept touch events here so we
+ // can ignore them, otherwise we just let all apps handle the touch events.
+ if (mInTransition && mTransitioningToWorkspace) {
return true;
}
return super.onInterceptTouchEvent(ev);
@@ -173,9 +174,8 @@ public class AppsCustomizeTabHost extends TabHost implements LauncherTransitiona
@Override
public boolean onTouchEvent(MotionEvent event) {
- // Allow touch events to fall through if we are transitioning to the workspace
- if (mInTransition) {
- if (mTransitioningToWorkspace) {
+ // Allow touch events to fall through to the workspace if we are transitioning there
+ if (mInTransition && mTransitioningToWorkspace) {
return super.onTouchEvent(event);
}
}