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

Commit 04b0d3b8 authored by Michael Bestas's avatar Michael Bestas
Browse files

SystemUI: Fix reading mode tile accessibility strings

Change-Id: I4f0af56e4947b037e1e2dda79132523d13458818
parent 6c5c8aa4
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -140,7 +140,11 @@
    <!-- Reader mode QS tile -->
    <string name="quick_settings_reading_mode">Reading mode</string>
    <!-- Content description of the reader mode tile when on -->
    <string name="accessibility_quick_settings_reading_mode_on">Reading mode enabled</string>
    <string name="accessibility_quick_settings_reading_mode_on">Reading mode on.</string>
    <!-- Content description of the reader mode tile when off -->
    <string name="accessibility_quick_settings_reading_mode_off">Reading mode disabled</string>
    <string name="accessibility_quick_settings_reading_mode_off">Reading mode off.</string>
    <!-- Content description of the reader mode tile when turned on -->
    <string name="accessibility_quick_settings_reading_mode_changed_on">Reading mode turned on.</string>
    <!-- Content description of the reader mode tile when turned off -->
    <string name="accessibility_quick_settings_reading_mode_changed_off">Reading mode turned off.</string>
</resources>
+11 −0
Original line number Diff line number Diff line
@@ -89,6 +89,17 @@ public class ReadingModeTile extends QSTileImpl<BooleanState> {
        return mContext.getString(R.string.quick_settings_reading_mode);
    }

    @Override
    protected String composeChangeAnnouncement() {
        if (mState.value) {
            return mContext.getString(
                    R.string.accessibility_quick_settings_reading_mode_changed_on);
        } else {
            return mContext.getString(
                    R.string.accessibility_quick_settings_reading_mode_changed_off);
        }
    }

    @Override
    public int getMetricsCategory() {
        return LineageMetricsLogger.TILE_READING_MODE;