From 1ddabcc1570f5196e76a5c4462616e7619b23166 Mon Sep 17 00:00:00 2001 From: Michael Groover Date: Fri, 19 Apr 2019 18:35:24 -0700 Subject: [PATCH] Add content description to sensors off icon in status bar Bug: 130209047 Test: Enable Talkback and sensors off, verify sensors off icon in status bar is focusable. Change-Id: I50332596890564be4b1948069fd83e20ba2969f6 --- packages/SystemUI/res/values/strings.xml | 3 +++ .../android/systemui/statusbar/phone/PhoneStatusBarPolicy.java | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/SystemUI/res/values/strings.xml b/packages/SystemUI/res/values/strings.xml index 444cabfcc50e0..dc37656ca1c50 100644 --- a/packages/SystemUI/res/values/strings.xml +++ b/packages/SystemUI/res/values/strings.xml @@ -661,6 +661,9 @@ Location requests active + + Sensors off active + Clear all notifications. diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBarPolicy.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBarPolicy.java index 183fdb46a7951..d5706e36bd21c 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBarPolicy.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBarPolicy.java @@ -238,7 +238,8 @@ public class PhoneStatusBarPolicy mIconController.setIconVisibility(mSlotLocation, false); // sensors off - mIconController.setIcon(mSlotSensorsOff, R.drawable.stat_sys_sensors_off, null); + mIconController.setIcon(mSlotSensorsOff, R.drawable.stat_sys_sensors_off, + mContext.getString(R.string.accessibility_sensors_off_active)); mIconController.setIconVisibility(mSlotSensorsOff, mSensorPrivacyController.isSensorPrivacyEnabled());