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
diff --git a/src/com/android/launcher3/Launcher.java b/src/com/android/launcher3/Launcher.java
index bb264d6..2f1c8f0 100644
--- a/src/com/android/launcher3/Launcher.java
+++ b/src/com/android/launcher3/Launcher.java
@@ -2047,7 +2047,9 @@
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 @@
getWindow().getDecorView()
.sendAccessibilityEvent(AccessibilityEvent.TYPE_WINDOW_STATE_CHANGED);
- onWorkspaceShown();
+ onWorkspaceShown(animated);
}
- public void onWorkspaceShown() {
+ public void onWorkspaceShown(boolean animated) {
}
void showAllApps(boolean animated) {