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

Commit 2f58649b authored by Robert Horvath's avatar Robert Horvath
Browse files

Remove window animations for shutdown UI on TV

If reboot happens too quickly, the video output freezes during the
fade in window enter animation. This leads to the text on the shutdown
UI being hard to read, as the window is still transparent and text from
underneath might shine through.
To resolve this, this change removes the window animations from the
shutdown UI for TVs, so that the UI appears instantly without a fade.

Bug: 152509487
Test: flash build and reboot / factory reset
Change-Id: I28153a56f3b5cfc4f89b06fcc8fe6fba935eb30b
parent d6ce2cca
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -17,4 +17,9 @@
<resources xmlns:android="http://schemas.android.com/apk/res/android">
    <style name="Theme.SystemUI.Dialog" parent="@android:style/Theme.DeviceDefault.Dialog" />
    <style name="Theme.SystemUI.Dialog.Alert" parent="@*android:style/Theme.DeviceDefault.Dialog.Alert" />

    <style name="Animation.ShutdownUi">
        <item name="android:windowEnterAnimation">@null</item>
        <item name="android:windowExitAnimation">@null</item>
    </style>
</resources>
+3 −0
Original line number Diff line number Diff line
@@ -305,6 +305,9 @@
        <item name="android:windowExitAnimation">@null</item>
    </style>

    <style name="Animation.ShutdownUi" parent="@android:style/Animation.Toast">
    </style>

    <!-- Standard animations for hiding and showing the status bar. -->
    <style name="Animation.StatusBar">
    </style>
+1 −1
Original line number Diff line number Diff line
@@ -122,7 +122,7 @@ public class GlobalActionsImpl implements GlobalActions, CommandQueue.Callbacks
                        | WindowManager.LayoutParams.FLAG_WATCH_OUTSIDE_TOUCH
                        | WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED);
        window.setBackgroundDrawable(background);
        window.setWindowAnimations(R.style.Animation_Toast);
        window.setWindowAnimations(com.android.systemui.R.style.Animation_ShutdownUi);

        d.setContentView(R.layout.shutdown_dialog);
        d.setCancelable(false);