Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1ddabcc1 authored by Michael Groover's avatar Michael Groover
Browse files

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
parent 364d2515
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -661,6 +661,9 @@
    <!-- Accessibility text describing the presence of active location requests by one or more apps -->
    <string name="accessibility_location_active">Location requests active</string>

    <!-- Accessibility text describing sensors off active. [CHAR LIMIT=NONE] -->
    <string name="accessibility_sensors_off_active">Sensors off active</string>

    <!-- Content description of the clear button in the notification panel for accessibility (not shown on the screen). [CHAR LIMIT=NONE] -->
    <string name="accessibility_clear_all">Clear all notifications.</string>

+2 −1
Original line number Diff line number Diff line
@@ -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());