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
This commit is contained in:
@@ -320,6 +320,9 @@
|
||||
<style name="Animation.ShutdownUi" parent="@android:style/Animation.Toast">
|
||||
</style>
|
||||
|
||||
<style name="Animation.MediaOutputDialog" parent="@android:style/Animation.InputMethod">
|
||||
</style>
|
||||
|
||||
<!-- Standard animations for hiding and showing the status bar. -->
|
||||
<style name="Animation.StatusBar">
|
||||
</style>
|
||||
|
||||
@@ -105,6 +105,7 @@ public abstract class MediaOutputBaseDialog extends SystemUIDialog implements
|
||||
window.setAttributes(lp);
|
||||
window.setContentView(mDialogView);
|
||||
window.setLayout(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT);
|
||||
window.setWindowAnimations(R.style.Animation_MediaOutputDialog);
|
||||
|
||||
mHeaderTitle = mDialogView.requireViewById(R.id.header_title);
|
||||
mHeaderSubtitle = mDialogView.requireViewById(R.id.header_subtitle);
|
||||
|
||||
Reference in New Issue
Block a user