From 69688aa359cdbffce4decf334f5d6f0143e3a694 Mon Sep 17 00:00:00 2001 From: Bjorn Bringert Date: Tue, 11 Jun 2013 20:26:38 +0100 Subject: [PATCH] Add 'animated' argument to onWorkspaceShown; only call it on touch down This lets subclasses decide whether to animate hiding of their own overlays etc. Change-Id: I0b34953c53cd0beb0fb33329d919f78f671b660a --- src/com/android/launcher3/Launcher.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/com/android/launcher3/Launcher.java b/src/com/android/launcher3/Launcher.java index bb264d60ac..2f1c8f0fc3 100644 --- a/src/com/android/launcher3/Launcher.java +++ b/src/com/android/launcher3/Launcher.java @@ -2047,7 +2047,9 @@ public class Launcher extends Activity public boolean onTouch(View v, MotionEvent event) { // this is an intercepted event being forwarded from mWorkspace; // clicking anywhere on the workspace causes the customization drawer to slide down - showWorkspace(true); + if (event.getAction() == MotionEvent.ACTION_DOWN) { + showWorkspace(true); + } return false; } @@ -2898,10 +2900,10 @@ public class Launcher extends Activity getWindow().getDecorView() .sendAccessibilityEvent(AccessibilityEvent.TYPE_WINDOW_STATE_CHANGED); - onWorkspaceShown(); + onWorkspaceShown(animated); } - public void onWorkspaceShown() { + public void onWorkspaceShown(boolean animated) { } void showAllApps(boolean animated) {