OSDN Git Service

Merge "Resize only one widget at a time" into ub-launcher3-master
authorSunny Goyal <sunnygoyal@google.com>
Fri, 23 Sep 2016 23:23:03 +0000 (23:23 +0000)
committerAndroid (Google) Code Review <android-gerrit@google.com>
Fri, 23 Sep 2016 23:23:03 +0000 (23:23 +0000)
1  2 
src/com/android/launcher3/Launcher.java
src/com/android/launcher3/Workspace.java
src/com/android/launcher3/allapps/AllAppsTransitionController.java
src/com/android/launcher3/shortcuts/DeepShortcutsContainer.java

@@@ -106,10 -106,10 +106,10 @@@ public class AllAppsTransitionControlle
      }
  
      @Override
-     public boolean onInterceptTouchEvent(MotionEvent ev) {
+     public boolean onControllerInterceptTouchEvent(MotionEvent ev) {
          if (ev.getAction() == MotionEvent.ACTION_DOWN) {
              mNoIntercept = false;
 -            if (mLauncher.getWorkspace().isInOverviewMode() || mLauncher.isWidgetsViewVisible()) {
 +            if (!mLauncher.isAllAppsVisible() && mLauncher.getWorkspace().workspaceInModalState()) {
                  mNoIntercept = true;
              } else if (mLauncher.isAllAppsVisible() &&
                      !mAppsView.shouldContainerScroll(ev)) {