diff --git a/core/res/res/values/strings.xml b/core/res/res/values/strings.xml index bd350730a8e20..fc628bb72ac8b 100644 --- a/core/res/res/values/strings.xml +++ b/core/res/res/values/strings.xml @@ -4587,6 +4587,9 @@ Autofill options + + Save for Autofill + Contents can\u2019t be autofilled diff --git a/core/res/res/values/symbols.xml b/core/res/res/values/symbols.xml index 1dd8227edafda..99e9b8000cbcf 100644 --- a/core/res/res/values/symbols.xml +++ b/core/res/res/values/symbols.xml @@ -2886,6 +2886,7 @@ + diff --git a/services/autofill/java/com/android/server/autofill/ui/SaveUi.java b/services/autofill/java/com/android/server/autofill/ui/SaveUi.java index f94d456cb47f0..9d9cb9474069b 100644 --- a/services/autofill/java/com/android/server/autofill/ui/SaveUi.java +++ b/services/autofill/java/com/android/server/autofill/ui/SaveUi.java @@ -183,7 +183,9 @@ final class SaveUi { window.setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_PAN); window.setGravity(Gravity.BOTTOM | Gravity.CENTER); window.setCloseOnTouchOutside(true); - window.getAttributes().width = WindowManager.LayoutParams.MATCH_PARENT; + final WindowManager.LayoutParams params = window.getAttributes(); + params.width = WindowManager.LayoutParams.MATCH_PARENT; + params.accessibilityTitle = context.getString(R.string.autofill_save_accessibility_title); mDialog.show(); }