Merge "Move live tile app to top when the task view is tapped" into sc-v2-dev

This commit is contained in:
TreeHugger Robot 2021-11-18 12:26:05 +00:00 committed by Android (Google) Code Review
commit 1edee616ae
1 changed files with 9 additions and 0 deletions

View File

@ -647,6 +647,15 @@ public class TaskView extends FrameLayout implements Reusable {
mActivity.getStateManager(), recentsView,
recentsView.getDepthController());
anim.addListener(new AnimatorListenerAdapter() {
@Override
public void onAnimationStart(Animator animation) {
recentsView.runActionOnRemoteHandles(
(Consumer<RemoteTargetHandle>) remoteTargetHandle ->
remoteTargetHandle
.getTaskViewSimulator()
.setDrawsBelowRecents(false));
}
@Override
public void onAnimationEnd(Animator animator) {
mIsClickableAsLiveTile = true;