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

Commit 7641443f authored by Felipe Leme's avatar Felipe Leme
Browse files

Added sliding motion / animation to Autofill Save UI.

Test: manual observation
Test: cts-tradefed run commandAndExit cts-dev -m CtsAutoFillServiceTestCases
Fixes: 63680769

Change-Id: I62122733bb0e4b09de3347b091e27e60fbc51333
parent c58e47cf
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -1493,6 +1493,12 @@ please see styles_device_defaults.xml.
        <item name="background">@drawable/autofill_dataset_picker_background</item>
    </style>

    <!-- @hide -->
    <style name="AutofillSaveAnimation">
        <item name="android:windowEnterAnimation">@anim/slide_in_up</item>
        <item name="android:windowExitAnimation">@anim/slide_out_down</item>
    </style>

    <!-- The style for the container of media actions in a notification. -->
    <!-- @hide -->
    <style name="NotificationMediaActionContainer">
+1 −0
Original line number Diff line number Diff line
@@ -2919,6 +2919,7 @@
  <java-symbol type="string" name="autofill_save_type_email_address" />
  <java-symbol type="drawable" name="autofill_dataset_picker_background" />
  <java-symbol type="style" name="AutofillDatasetPicker" />
  <java-symbol type="style" name="AutofillSaveAnimation" />
  <java-symbol type="dimen" name="autofill_dataset_picker_max_size"/>
  <java-symbol type="dimen" name="autofill_save_custom_subtitle_max_height"/>

+1 −0
Original line number Diff line number Diff line
@@ -228,6 +228,7 @@ final class SaveUi {
        final WindowManager.LayoutParams params = window.getAttributes();
        params.width = WindowManager.LayoutParams.MATCH_PARENT;
        params.accessibilityTitle = context.getString(R.string.autofill_save_accessibility_title);
        params.windowAnimations = R.style.AutofillSaveAnimation;

        Slog.i(TAG, "Showing save dialog: " + mTitle);
        mDialog.show();