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

Commit 052788f7 authored by Anton Potapov's avatar Anton Potapov
Browse files

Improve volume panel open-settings transitions.

Removing animation style removes fading from panel open-close which
looks better.
Intent flag slightly improves transitiong to the settings when it's
already opened.

Flag: aconfig new_volume_panel TEAMFOOD
Test: manual on the phone. Open settings using a button in the bottom
bar of the volume panel.
Bug: 330105146

Change-Id: Ic37f8314d1375ff94414594ccee18ed1512aa6e3
parent 139426f7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -962,7 +962,7 @@
        <item name="android:windowBackground">@android:color/transparent</item>
        <item name="android:backgroundDimEnabled">true</item>
        <item name="android:windowCloseOnTouchOutside">true</item>
        <item name="android:windowAnimationStyle">@android:style/Animation.Dialog</item>
        <item name="android:windowAnimationStyle">@null</item>
    </style>

    <style name="Widget.SliceView.VolumePanel">
+2 −1
Original line number Diff line number Diff line
@@ -38,7 +38,8 @@ constructor(
    fun onSettingsClicked() {
        volumePanelViewModel.dismissPanel()
        activityStarter.startActivity(
            Intent(Settings.ACTION_SOUND_SETTINGS).addFlags(Intent.FLAG_ACTIVITY_NEW_TASK),
            Intent(Settings.ACTION_SOUND_SETTINGS)
                .addFlags(Intent.FLAG_ACTIVITY_NEW_TASK or Intent.FLAG_ACTIVITY_REORDER_TO_FRONT),
            true,
        )
    }