Merge "Continue with the animation if wallpaper fails to draw" into qt-dev
This commit is contained in:
@@ -24,7 +24,6 @@ import static android.view.WindowManager.LayoutParams.TYPE_WALLPAPER;
|
|||||||
import static android.view.WindowManager.TRANSIT_FLAG_KEYGUARD_GOING_AWAY_WITH_WALLPAPER;
|
import static android.view.WindowManager.TRANSIT_FLAG_KEYGUARD_GOING_AWAY_WITH_WALLPAPER;
|
||||||
|
|
||||||
import static com.android.server.policy.WindowManagerPolicy.FINISH_LAYOUT_REDO_WALLPAPER;
|
import static com.android.server.policy.WindowManagerPolicy.FINISH_LAYOUT_REDO_WALLPAPER;
|
||||||
import static com.android.server.wm.RecentsAnimationController.REORDER_MOVE_TO_ORIGINAL_POSITION;
|
|
||||||
import static com.android.server.wm.WindowManagerDebugConfig.DEBUG_APP_TRANSITIONS;
|
import static com.android.server.wm.WindowManagerDebugConfig.DEBUG_APP_TRANSITIONS;
|
||||||
import static com.android.server.wm.WindowManagerDebugConfig.DEBUG_SCREENSHOT;
|
import static com.android.server.wm.WindowManagerDebugConfig.DEBUG_SCREENSHOT;
|
||||||
import static com.android.server.wm.WindowManagerDebugConfig.DEBUG_WALLPAPER;
|
import static com.android.server.wm.WindowManagerDebugConfig.DEBUG_WALLPAPER;
|
||||||
@@ -612,10 +611,10 @@ class WallpaperController {
|
|||||||
if (DEBUG_APP_TRANSITIONS || DEBUG_WALLPAPER) Slog.v(TAG,
|
if (DEBUG_APP_TRANSITIONS || DEBUG_WALLPAPER) Slog.v(TAG,
|
||||||
"*** WALLPAPER DRAW TIMEOUT");
|
"*** WALLPAPER DRAW TIMEOUT");
|
||||||
|
|
||||||
// If there was a recents animation in progress, cancel that animation
|
// If there was a pending recents animation, start the animation anyways (it's better
|
||||||
|
// to not see the wallpaper than for the animation to not start)
|
||||||
if (mService.getRecentsAnimationController() != null) {
|
if (mService.getRecentsAnimationController() != null) {
|
||||||
mService.getRecentsAnimationController().cancelAnimation(
|
mService.getRecentsAnimationController().startAnimation();
|
||||||
REORDER_MOVE_TO_ORIGINAL_POSITION, "wallpaperDrawPendingTimeout");
|
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user