From 6c00f16d671789b7b5c8cfa75900374431249031 Mon Sep 17 00:00:00 2001 From: Samuel Fufa Date: Sun, 12 Apr 2020 17:38:14 -0700 Subject: [PATCH] Define a11y content description for work paused list Bug: 151803591 Test: Manual Change-Id: I2b592189d784010f09fcd54378f2b34bd2d6c6e3 --- res/values/strings.xml | 4 ++++ src/com/android/launcher3/allapps/AllAppsContainerView.java | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/res/values/strings.xml b/res/values/strings.xml index ac04262ae8..a9ce24c320 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -343,6 +343,10 @@ Work profile is paused Work apps can\’t send you notifications, use your battery, or access your location + + Work profile is paused. Work apps can\’t send you notifications, use your battery, or access your location + + Pause work apps and notifications diff --git a/src/com/android/launcher3/allapps/AllAppsContainerView.java b/src/com/android/launcher3/allapps/AllAppsContainerView.java index 69faa498bd..a45c96c44b 100644 --- a/src/com/android/launcher3/allapps/AllAppsContainerView.java +++ b/src/com/android/launcher3/allapps/AllAppsContainerView.java @@ -645,8 +645,8 @@ public class AllAppsContainerView extends SpringRelativeLayout implements DragSo if (!mIsWork || recyclerView == null) return; boolean workDisabled = UserCache.INSTANCE.get(mLauncher).isAnyProfileQuietModeEnabled(); if (mWorkDisabled == workDisabled) return; - recyclerView.setContentDescription( - workDisabled ? mLauncher.getString(R.string.work_apps_paused_title) : null); + recyclerView.setContentDescription(workDisabled ? mLauncher.getString( + R.string.work_apps_paused_content_description) : null); View overlayView = getOverlayView(); recyclerView.setItemAnimator(new DefaultItemAnimator()); if (workDisabled) {