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

Commit d63e6969 authored by Jason Monk's avatar Jason Monk Committed by Android (Google) Code Review
Browse files

Merge "Add content description to owner info status text" into mnc-dev

parents 7699cad0 2e78f53a
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -6845,4 +6845,7 @@
    <!-- Warning message about disabling usage access on profile owner [CHAR LIMIT=NONE] -->
    <string name="work_profile_usage_access_warning">Turning off usage access for this app doesn\u2019t prevent your administrator tracking data usage for apps in your work profile.</string>
    <!-- Number of characters used for lock screen text [CHAR LIMIT=NONE] -->
    <string name="accessibility_lock_screen_progress"><xliff:g id="count" example="1">%1$d</xliff:g> of <xliff:g id="count" example="1">%2$d</xliff:g> characters used</string>
</resources>
+5 −1
Original line number Diff line number Diff line
@@ -92,9 +92,13 @@ public class OwnerInfoSettings extends DialogFragment implements OnClickListener
    }

    private void updateOwnerInfoStatus() {
        int chars = mOwnerInfo.getText().toString().length();
        String status = getString(R.string.owner_info_settings_status,
                mOwnerInfo.getText().toString().length(), MAX_CHARS);
                chars, MAX_CHARS);
        String accessibilityStatus = getString(R.string.accessibility_lock_screen_progress,
                chars, MAX_CHARS);
        mOwnerInfoStatus.setText(status);
        mOwnerInfoStatus.setContentDescription(accessibilityStatus);
    }

    @Override