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
This commit is contained in:
Bjorn Bringert
2013-06-11 20:26:38 +01:00
parent ecf33e4819
commit 69688aa359
+5 -3
View File
@@ -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) {