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

Commit b71aeae0 authored by timhypeng's avatar timhypeng Committed by tim peng
Browse files

Apply animation for Media Ouput Switcher dialog

-Inherit InputMethod animation and create MediaOutputDialog animation

Bug: 155822415
Test: manual test
Merged-In: I42506f065da687c4ba6ddadca0f3b7a1c55f1be7
Change-Id: I42506f065da687c4ba6ddadca0f3b7a1c55f1be7
parent c3447450
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -320,6 +320,9 @@
    <style name="Animation.ShutdownUi" parent="@android:style/Animation.Toast">
    <style name="Animation.ShutdownUi" parent="@android:style/Animation.Toast">
    </style>
    </style>


    <style name="Animation.MediaOutputDialog" parent="@android:style/Animation.InputMethod">
    </style>

    <!-- Standard animations for hiding and showing the status bar. -->
    <!-- Standard animations for hiding and showing the status bar. -->
    <style name="Animation.StatusBar">
    <style name="Animation.StatusBar">
    </style>
    </style>
+1 −0
Original line number Original line Diff line number Diff line
@@ -105,6 +105,7 @@ public abstract class MediaOutputBaseDialog extends SystemUIDialog implements
        window.setAttributes(lp);
        window.setAttributes(lp);
        window.setContentView(mDialogView);
        window.setContentView(mDialogView);
        window.setLayout(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT);
        window.setLayout(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT);
        window.setWindowAnimations(R.style.Animation_MediaOutputDialog);


        mHeaderTitle = mDialogView.requireViewById(R.id.header_title);
        mHeaderTitle = mDialogView.requireViewById(R.id.header_title);
        mHeaderSubtitle = mDialogView.requireViewById(R.id.header_subtitle);
        mHeaderSubtitle = mDialogView.requireViewById(R.id.header_subtitle);