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

Commit 0b9512f6 authored by Jordan Demeulenaere's avatar Jordan Demeulenaere
Browse files

Animate power menu dialog from power button

This CL animates the power menu dialog from the power menu button
instead of from the bottom. The animation has the same spec as the
device default dialog animation (see http://ag/16769344), except for the
direction of the translation.

Note that this does not support devices that don't have the power button
on the right. I will add support for that in a follow-up CL.

See b/213872558#comment3 for a video.

Bug: 213872558
Test: Manual
Change-Id: I7d5f7d9f2ed2375814cb827275728ef9890a50ae
parent 92391616
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -22,7 +22,7 @@
        android:interpolator="@interpolator/standard"
        android:duration="@android:integer/config_activityDefaultDur" />
    <translate
        android:fromYDelta="20dp"
        android:fromYDelta="@android:dimen/popup_enter_animation_from_y_delta"
        android:toYDelta="0"
        android:interpolator="@interpolator/standard"
        android:duration="@android:integer/config_activityDefaultDur" />
+1 −1
Original line number Diff line number Diff line
@@ -23,7 +23,7 @@
        android:duration="@android:integer/config_activityShortDur" />
    <translate
        android:fromYDelta="0"
        android:toYDelta="-10dp"
        android:toYDelta="@android:dimen/popup_exit_animation_to_y_delta"
        android:interpolator="@interpolator/standard_accelerate"
        android:duration="@android:integer/config_activityShortDur" />
</set>
+4 −0
Original line number Diff line number Diff line
@@ -994,4 +994,8 @@

    <!-- Default size for user icons (a.k.a. avatar images) -->
    <dimen name="user_icon_size">190dp</dimen>

    <!-- Dimensions for the translations of the default dialog animation. -->
    <dimen name="popup_enter_animation_from_y_delta">20dp</dimen>
    <dimen name="popup_exit_animation_to_y_delta">-10dp</dimen>
</resources>
+4 −0
Original line number Diff line number Diff line
@@ -2358,6 +2358,10 @@
  <java-symbol type="string" name="nas_upgrade_notification_learn_more_action" />
  <java-symbol type="string" name="nas_upgrade_notification_learn_more_content" />
  <java-symbol type="bool" name="config_settingsHelpLinksEnabled" />
  <java-symbol type="integer" name="config_activityDefaultDur" />
  <java-symbol type="integer" name="config_activityShortDur" />
  <java-symbol type="dimen" name="popup_enter_animation_from_y_delta" />
  <java-symbol type="dimen" name="popup_exit_animation_to_y_delta" />

  <!-- ImfTest -->
  <java-symbol type="layout" name="auto_complete_list" />
+5 −0
Original line number Diff line number Diff line
@@ -399,6 +399,11 @@
        <!-- that would otherwise be intercepted by the Shade. -->
        <item name="android:windowFullscreen">true</item>
        <item name="android:windowBackground">@android:color/transparent</item>

        <!-- Empty enter/exit animation, we will animate in-window. Note that the implementation -->
        <!-- of ActionsDialogLite relies on this to be null (resource=0) to detect when to run -->
        <!-- the in-window animation. -->
        <item name="android:windowAnimationStyle">@null</item>
    </style>

    <style name="QSBorderlessButton">
Loading