Remove splash screen animation on TV

Previously we set the animation duration to 0, which might still trigger some work for the starting window. It's better to set the animation to NONE to avoid that

Bug: 243060417
Test: m

Change-Id: I9481ca612c0b2b401f35e5530b62d9bb1e098b89
This commit is contained in:
Galia Peycheva
2022-08-22 18:22:32 +02:00
parent 5242e7a97d
commit f920ff4be6

View File

@@ -16,7 +16,7 @@
package com.android.wm.shell.startingsurface.tv;
import static android.window.StartingWindowInfo.STARTING_WINDOW_TYPE_SOLID_COLOR_SPLASH_SCREEN;
import static android.window.StartingWindowInfo.STARTING_WINDOW_TYPE_NONE;
import android.window.StartingWindowInfo;
@@ -30,6 +30,6 @@ public class TvStartingWindowTypeAlgorithm implements StartingWindowTypeAlgorith
@Override
public int getSuggestedWindowType(StartingWindowInfo windowInfo) {
// For now we want to always show empty splash screens on TV.
return STARTING_WINDOW_TYPE_SOLID_COLOR_SPLASH_SCREEN;
return STARTING_WINDOW_TYPE_NONE;
}
}