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

Commit 3b515973 authored by Annie Chin's avatar Annie Chin
Browse files

Add talkback announcement for city check/uncheck.

Bug: 25000174
Change-Id: I4a0425b81cc3f9cfa03dbc92700ceef8a2214a6f
parent c42cfd50
Loading
Loading
Loading
Loading
+12 −1
Original line number Diff line number Diff line
@@ -586,7 +586,7 @@
      <item>digital</item>
    </string-array>

    <!-- Title for an option that will automtically show a clock representing the user's regular timezone on the main fragment whenever the user leaves their regular timezone-->
    <!-- Title for an option that will automatically show a clock representing the user's regular timezone on the main fragment whenever the user leaves their regular timezone-->
    <string name="automatic_home_clock">Automatic home clock</string>
    <!-- Describes the functionality provided by the automatic_home_clock option -->
    <string name="automatic_home_clock_summary">While traveling in an area where the time is different, add a clock for home</string>
@@ -607,6 +607,17 @@
    <!-- add 30 as minutes to the time when pressing this button -->
    <string name="time_picker_30_label">:30</string>

    <!--
        Accessibility string read when a city checkbox is checked.
        Ex. "Ann Arbor checked"
    -->
    <string name="city_checked"><xliff:g id="city_name">%s</xliff:g> checked</string>
    <!--
        Accessibility string read when a city checkbox is unchecked.
        Ex. "Ann Arbor unchecked"
    -->
    <string name="city_unchecked"><xliff:g id="city_name">%s</xliff:g> unchecked</string>

    <!-- Choices for timezones, must be kept in sync with timezone_values. CHAR LIMIT=25] -->
    <string-array name="timezone_labels">
        <item>"Marshall Islands"</item>
+4 −0
Original line number Diff line number Diff line
@@ -361,8 +361,12 @@ public final class CitySelectionActivity extends BaseActivity {
            final City city = (City) b.getTag();
            if (checked) {
                mUserSelectedCities.add(city);
                b.announceForAccessibility(mContext.getString(R.string.city_checked,
                        city.getName()));
            } else {
                mUserSelectedCities.remove(city);
                b.announceForAccessibility(mContext.getString(R.string.city_unchecked,
                        city.getName()));
            }
        }