summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/allapps
diff options
context:
space:
mode:
authorVadim Tryshev <vadimt@google.com>2018-08-14 19:53:43 -0700
committerVadim Tryshev <vadimt@google.com>2018-08-14 19:53:43 -0700
commitb6398a1eb8b69651e0f901a93d7b46347e5d6a83 (patch)
treed53a77ff6d7e3e93dc4c70ddfb38d83604dc9e84 /src/com/android/launcher3/allapps
parente1c4a90635f18548d3cadab5866dd1aba7bbfea4 (diff)
downloadandroid_packages_apps_Trebuchet-b6398a1eb8b69651e0f901a93d7b46347e5d6a83.tar.gz
android_packages_apps_Trebuchet-b6398a1eb8b69651e0f901a93d7b46347e5d6a83.tar.bz2
android_packages_apps_Trebuchet-b6398a1eb8b69651e0f901a93d7b46347e5d6a83.zip
Sharing protocol constants between Launcher and TAPL
Bug: 110103162 Test: TaplTests Change-Id: I5b2a2b8576a7a6ea4a156f00858711496d6b5bba
Diffstat (limited to 'src/com/android/launcher3/allapps')
-rw-r--r--src/com/android/launcher3/allapps/AllAppsContainerView.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/com/android/launcher3/allapps/AllAppsContainerView.java b/src/com/android/launcher3/allapps/AllAppsContainerView.java
index e5cda21f1..6908ab48a 100644
--- a/src/com/android/launcher3/allapps/AllAppsContainerView.java
+++ b/src/com/android/launcher3/allapps/AllAppsContainerView.java
@@ -42,6 +42,7 @@ import com.android.launcher3.InsettableFrameLayout;
import com.android.launcher3.ItemInfo;
import com.android.launcher3.Launcher;
import com.android.launcher3.R;
+import com.android.launcher3.TestProtocol;
import com.android.launcher3.Utilities;
import com.android.launcher3.compat.AccessibilityManagerCompat;
import com.android.launcher3.config.FeatureFlags;
@@ -576,9 +577,10 @@ public class AllAppsContainerView extends SpringRelativeLayout implements DragSo
@Override
public boolean performAccessibilityAction(int action, Bundle arguments) {
if (AccessibilityManagerCompat.processTestRequest(
- mLauncher, "TAPL_GET_SCROLL", action, arguments,
+ mLauncher, TestProtocol.GET_SCROLL_MESSAGE, action, arguments,
response ->
- response.putInt("scrollY", getActiveRecyclerView().getCurrentScrollY()))) {
+ response.putInt(TestProtocol.SCROLL_Y_FIELD,
+ getActiveRecyclerView().getCurrentScrollY()))) {
return true;
}