Merge "Properly finish transition in ExitDesktopTaskTransitionHandler" into udc-dev
This commit is contained in:
@@ -18,6 +18,8 @@ package com.android.wm.shell.desktopmode;
|
|||||||
|
|
||||||
import static android.app.WindowConfiguration.WINDOWING_MODE_FULLSCREEN;
|
import static android.app.WindowConfiguration.WINDOWING_MODE_FULLSCREEN;
|
||||||
|
|
||||||
|
import android.animation.Animator;
|
||||||
|
import android.animation.AnimatorListenerAdapter;
|
||||||
import android.animation.ValueAnimator;
|
import android.animation.ValueAnimator;
|
||||||
import android.app.ActivityManager;
|
import android.app.ActivityManager;
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
@@ -146,6 +148,13 @@ public class ExitDesktopTaskTransitionHandler implements Transitions.TransitionH
|
|||||||
t.setScale(sc, currentScaleX, currentScaleY);
|
t.setScale(sc, currentScaleX, currentScaleY);
|
||||||
t.apply();
|
t.apply();
|
||||||
});
|
});
|
||||||
|
animator.addListener(new AnimatorListenerAdapter() {
|
||||||
|
@Override
|
||||||
|
public void onAnimationEnd(Animator animation) {
|
||||||
|
mTransitions.getMainExecutor().execute(
|
||||||
|
() -> finishCallback.onTransitionFinished(null, null));
|
||||||
|
}
|
||||||
|
});
|
||||||
animator.start();
|
animator.start();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user