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

Commit b530c532 authored by Galia Peycheva's avatar Galia Peycheva Committed by Android (Google) Code Review
Browse files

Merge "Use TRANSIT_WALLPAPER_OPEN when going to home activity"

parents d4e230ae 168084eb
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -465,6 +465,16 @@ public class AppTransitionController {
            return TRANSIT_OLD_WALLPAPER_OPEN;
        }

        // Some devices don't show a wallpaper. In that case we should still trigger wallpaper
        // transitions when animating to/from the home activity
        if (wallpaperTarget == null) {
            if (topOpeningApp != null && topOpeningApp.isActivityTypeHome()) {
                return TRANSIT_OLD_WALLPAPER_OPEN;
            } else if (topClosingApp != null && topClosingApp.isActivityTypeHome()) {
                return TRANSIT_OLD_WALLPAPER_CLOSE;
            }
        }

        final ArraySet<WindowContainer> openingWcs = getAnimationTargets(
                openingApps, closingApps, true /* visible */);
        final ArraySet<WindowContainer> closingWcs = getAnimationTargets(