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

Commit f75ced8d authored by Matt Sziklay's avatar Matt Sziklay Committed by Automerger Merge Worker
Browse files

Merge "Properly finish transition in ExitDesktopTaskTransitionHandler" into...

Merge "Properly finish transition in ExitDesktopTaskTransitionHandler" into udc-dev am: 8d844008 am: 897bfff3

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/22454122



Change-Id: Ie2269ec46403ed99a31a51538182843fb8c5075c
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 1739f078 897bfff3
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -18,6 +18,8 @@ package com.android.wm.shell.desktopmode;

import static android.app.WindowConfiguration.WINDOWING_MODE_FULLSCREEN;

import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.animation.ValueAnimator;
import android.app.ActivityManager;
import android.content.Context;
@@ -146,6 +148,13 @@ public class ExitDesktopTaskTransitionHandler implements Transitions.TransitionH
                t.setScale(sc, currentScaleX, currentScaleY);
                t.apply();
            });
            animator.addListener(new AnimatorListenerAdapter() {
                @Override
                public void onAnimationEnd(Animator animation) {
                    mTransitions.getMainExecutor().execute(
                            () -> finishCallback.onTransitionFinished(null, null));
                }
            });
            animator.start();
            return true;
        }