summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorvadimt <vadimt@google.com>2019-11-12 16:57:48 -0800
committerVadim Tryshev <vadimt@google.com>2019-11-13 21:45:16 +0000
commitec7c044c89fb9168d44b81c58325aaba3ec73606 (patch)
tree9da48222eb79ae859faa69cff76324c0500a3142 /src
parent992cfbf63d13e9490f4726119733fda7f638089c (diff)
downloadandroid_packages_apps_Trebuchet-ec7c044c89fb9168d44b81c58325aaba3ec73606.tar.gz
android_packages_apps_Trebuchet-ec7c044c89fb9168d44b81c58325aaba3ec73606.tar.bz2
android_packages_apps_Trebuchet-ec7c044c89fb9168d44b81c58325aaba3ec73606.zip
Tapl: AllApps: ensuring a minimal vertical size of an icon
Clicking an icon within its padding area is ignored by Launcher. Hence, ensuring that the icon on AllApps is higher that 2 paddings. Bug: 141770616 Change-Id: I19e3ba7cfa25de75a47202845d0838bea46af92c Merged-In: I19e3ba7cfa25de75a47202845d0838bea46af92c
Diffstat (limited to 'src')
-rw-r--r--src/com/android/launcher3/testing/TestInformationHandler.java6
-rw-r--r--src/com/android/launcher3/testing/TestProtocol.java2
2 files changed, 8 insertions, 0 deletions
diff --git a/src/com/android/launcher3/testing/TestInformationHandler.java b/src/com/android/launcher3/testing/TestInformationHandler.java
index cc2d586e2..c6de9ca90 100644
--- a/src/com/android/launcher3/testing/TestInformationHandler.java
+++ b/src/com/android/launcher3/testing/TestInformationHandler.java
@@ -151,6 +151,12 @@ public class TestInformationHandler implements ResourceBasedOverride {
mLeaks.add(bitmap);
break;
}
+
+ case TestProtocol.REQUEST_ICON_HEIGHT: {
+ response.putInt(TestProtocol.TEST_INFO_RESPONSE_FIELD,
+ mDeviceProfile.allAppsCellHeightPx);
+ break;
+ }
}
return response;
}
diff --git a/src/com/android/launcher3/testing/TestProtocol.java b/src/com/android/launcher3/testing/TestProtocol.java
index 62bb56404..07ddbdc4e 100644
--- a/src/com/android/launcher3/testing/TestProtocol.java
+++ b/src/com/android/launcher3/testing/TestProtocol.java
@@ -66,6 +66,8 @@ public final class TestProtocol {
"all-apps-to-overview-swipe-height";
public static final String REQUEST_HOME_TO_ALL_APPS_SWIPE_HEIGHT =
"home-to-all-apps-swipe-height";
+ public static final String REQUEST_ICON_HEIGHT =
+ "icon-height";
public static final String REQUEST_HOTSEAT_TOP = "hotseat-top";
public static final String REQUEST_IS_LAUNCHER_INITIALIZED = "is-launcher-initialized";
public static final String REQUEST_FREEZE_APP_LIST = "freeze-app-list";