Merge "Fix missing check empty style splash screen when task switch." into sc-v2-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
7bf1e9b7c6
@@ -71,23 +71,13 @@ public class PhoneStartingWindowTypeAlgorithm implements StartingWindowTypeAlgor
|
|||||||
+ " topIsHome:" + topIsHome);
|
+ " topIsHome:" + topIsHome);
|
||||||
}
|
}
|
||||||
|
|
||||||
final int visibleSplashScreenType = legacySplashScreen
|
|
||||||
? STARTING_WINDOW_TYPE_LEGACY_SPLASH_SCREEN
|
|
||||||
: STARTING_WINDOW_TYPE_SPLASH_SCREEN;
|
|
||||||
|
|
||||||
if (!topIsHome) {
|
if (!topIsHome) {
|
||||||
if (!processRunning) {
|
if (!processRunning || newTask || (taskSwitch && !activityCreated)) {
|
||||||
return useEmptySplashScreen
|
return useEmptySplashScreen
|
||||||
? STARTING_WINDOW_TYPE_EMPTY_SPLASH_SCREEN
|
? STARTING_WINDOW_TYPE_EMPTY_SPLASH_SCREEN
|
||||||
: visibleSplashScreenType;
|
: legacySplashScreen
|
||||||
}
|
? STARTING_WINDOW_TYPE_LEGACY_SPLASH_SCREEN
|
||||||
if (newTask) {
|
: STARTING_WINDOW_TYPE_SPLASH_SCREEN;
|
||||||
return useEmptySplashScreen
|
|
||||||
? STARTING_WINDOW_TYPE_EMPTY_SPLASH_SCREEN
|
|
||||||
: visibleSplashScreenType;
|
|
||||||
}
|
|
||||||
if (taskSwitch && !activityCreated) {
|
|
||||||
return visibleSplashScreenType;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (taskSwitch && allowTaskSnapshot) {
|
if (taskSwitch && allowTaskSnapshot) {
|
||||||
|
|||||||
Reference in New Issue
Block a user