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

Commit 05204cb7 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Added accessibility type on Autofill save dialog." into oc-dev

parents 0850a4c6 56d86dd7
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -4602,6 +4602,9 @@
    <!-- Accessibility title for the autofill dialog used to select a list of options to autofill an activity. [CHAR LIMIT=NONE] -->
    <!-- Accessibility title for the autofill dialog used to select a list of options to autofill an activity. [CHAR LIMIT=NONE] -->
    <string name="autofill_picker_accessibility_title">Autofill options</string>
    <string name="autofill_picker_accessibility_title">Autofill options</string>


    <!-- Accessibility title for the autofill dialog used to ask user to save the information on the screen by sending it to an Autofill Service. [CHAR LIMIT=NONE] -->
    <string name="autofill_save_accessibility_title">Save for Autofill</string>

    <!-- Toast message shown when user manually request autofill but service could not figure out the data that would autofill the screen contents. [CHAR LIMIT=NONE] -->
    <!-- Toast message shown when user manually request autofill but service could not figure out the data that would autofill the screen contents. [CHAR LIMIT=NONE] -->
    <string name="autofill_error_cannot_autofill">Contents can\u2019t be autofilled</string>
    <string name="autofill_error_cannot_autofill">Contents can\u2019t be autofilled</string>


+1 −0
Original line number Original line Diff line number Diff line
@@ -2893,6 +2893,7 @@
  <java-symbol type="string" name="autofill_error_cannot_autofill" />
  <java-symbol type="string" name="autofill_error_cannot_autofill" />
  <java-symbol type="string" name="autofill" />
  <java-symbol type="string" name="autofill" />
  <java-symbol type="string" name="autofill_picker_accessibility_title " />
  <java-symbol type="string" name="autofill_picker_accessibility_title " />
  <java-symbol type="string" name="autofill_save_accessibility_title " />
  <java-symbol type="string" name="autofill_save_title" />
  <java-symbol type="string" name="autofill_save_title" />
  <java-symbol type="string" name="autofill_save_title_with_type" />
  <java-symbol type="string" name="autofill_save_title_with_type" />
  <java-symbol type="string" name="autofill_save_title_with_2types" />
  <java-symbol type="string" name="autofill_save_title_with_2types" />
+3 −1
Original line number Original line Diff line number Diff line
@@ -185,7 +185,9 @@ final class SaveUi {
        window.setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_PAN);
        window.setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_PAN);
        window.setGravity(Gravity.BOTTOM | Gravity.CENTER);
        window.setGravity(Gravity.BOTTOM | Gravity.CENTER);
        window.setCloseOnTouchOutside(true);
        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();
        mDialog.show();
    }
    }