Merge "Add API to launcher to insert a custom page to the left of workspace" into jb-ub-gel-agar
diff --git a/src/com/android/launcher3/Launcher.java b/src/com/android/launcher3/Launcher.java
index 25b1fd4..8e8e6ed 100644
--- a/src/com/android/launcher3/Launcher.java
+++ b/src/com/android/launcher3/Launcher.java
@@ -2075,7 +2075,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;
}
@@ -2926,10 +2928,10 @@
getWindow().getDecorView()
.sendAccessibilityEvent(AccessibilityEvent.TYPE_WINDOW_STATE_CHANGED);
- onWorkspaceShown();
+ onWorkspaceShown(animated);
}
- public void onWorkspaceShown() {
+ public void onWorkspaceShown(boolean animated) {
}
void showAllApps(boolean animated) {