summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTreeHugger Robot <treehugger-gerrit@google.com>2017-07-14 23:26:42 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2017-07-14 23:26:42 +0000
commit69675520650ea3e75d530c8e043a815881675779 (patch)
treed91a3a6f2510b0194ec889e5ca95ec5a96e1677d
parent95b97c5dec0e0fffc2dd5a02c648f7a2ed41060c (diff)
parentbf78f3cd41983c2c5bab5bbb4fa5cdcee4e3b14e (diff)
downloadandroid_packages_apps_Trebuchet-69675520650ea3e75d530c8e043a815881675779.tar.gz
android_packages_apps_Trebuchet-69675520650ea3e75d530c8e043a815881675779.tar.bz2
android_packages_apps_Trebuchet-69675520650ea3e75d530c8e043a815881675779.zip
Merge "Collapse caret click and all apps click into one" into ub-launcher3-dorval-polish
-rw-r--r--src/com/android/launcher3/Launcher.java24
1 files changed, 5 insertions, 19 deletions
diff --git a/src/com/android/launcher3/Launcher.java b/src/com/android/launcher3/Launcher.java
index 6ab50f69f..fe459bb0d 100644
--- a/src/com/android/launcher3/Launcher.java
+++ b/src/com/android/launcher3/Launcher.java
@@ -2256,9 +2256,8 @@ public class Launcher extends BaseActivity
if (v instanceof FolderIcon) {
onClickFolderIcon(v);
}
- } else if ((FeatureFlags.LAUNCHER3_ALL_APPS_PULL_UP && v instanceof PageIndicator)) {
- onClickAllAppsCaret(v);
- } else if (v == mAllAppsButton && mAllAppsButton != null) {
+ } else if ((FeatureFlags.LAUNCHER3_ALL_APPS_PULL_UP && v instanceof PageIndicator) ||
+ (v == mAllAppsButton && mAllAppsButton != null)) {
onClickAllAppsButton(v);
} else if (tag instanceof AppInfo) {
startAppShortcutOrInfoActivity(v);
@@ -2309,8 +2308,9 @@ public class Launcher extends BaseActivity
}
/**
- * Event handler for the "grid" button that appears on the home screen, which
- * enters all apps mode.
+ * Event handler for the "grid" button or "caret" that appears on the home screen, which
+ * enters all apps mode. In verticalBarLayout the caret can be seen when all apps is open, and
+ * so in that case reverses the action.
*
* @param v The view that was clicked.
*/
@@ -2320,20 +2320,6 @@ public class Launcher extends BaseActivity
getUserEventDispatcher().logActionOnControl(Action.Touch.TAP,
ControlType.ALL_APPS_BUTTON);
showAppsView(true /* animated */, true /* updatePredictedApps */);
- }
- }
-
- /**
- * Event handler for the swipe up caret
- *
- * @param v The view that was clicked.
- */
- protected void onClickAllAppsCaret(View v) {
- if (LOGD) Log.d(TAG, "onClickAllAppsCaret");
- if (!isAppsViewVisible()) {
- getUserEventDispatcher().logActionOnControl(Action.Touch.TAP,
- ControlType.ALL_APPS_BUTTON);
- showAppsView(true /* animated */, true /* updatePredictedApps */);
} else {
showWorkspace(true);
}