Merge "Add talkback feedback when setting passowrd/pin/pattern complete" into main

This commit is contained in:
Vincent Wang
2023-12-19 02:40:43 +00:00
committed by Android (Google) Code Review
3 changed files with 15 additions and 0 deletions

View File

@@ -12633,4 +12633,7 @@
<string name="content_protection_preference_subpage_summary"></string>
<!-- Default information at the bottom of the subpage of content protection settings. Will be overlaid by OEM. -->
<string name="content_protection_preference_subpage_info"></string>
<!-- Content description for setting password complete-->
<string name="accessibility_setup_password_complete">Password is now set up</string>
</resources>

View File

@@ -1084,6 +1084,12 @@ public class ChooseLockPassword extends SettingsActivity {
startActivity(intent);
}
}
if (mLayout != null) {
mLayout.announceForAccessibility(
getString(R.string.accessibility_setup_password_complete));
}
getActivity().finish();
}

View File

@@ -871,6 +871,12 @@ public class ChooseLockPattern extends SettingsActivity {
startActivity(intent);
}
}
if (mSudContent != null) {
mSudContent.announceForAccessibility(
getString(R.string.accessibility_setup_password_complete));
}
getActivity().finish();
}
}