Remove prolonged animations
Never worked in P, not needed. Test: Enter split screen Bug: 77993227 Change-Id: I092c4141c23dd7ded4e11a0f54156b1abfa2b1c6
This commit is contained in:
1 parent
0ec3ce0bdf
commit
cd95352ada
2 files changed
-10
No files matched your search
Binary file not shown.
@@ -150,15 +150,6 @@ public class TaskSystemShortcut<T extends SystemShortcut> extends SystemShortcut
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
final OnPreDrawListener preDrawListener = new OnPreDrawListener() {
|
|
||||||
@Override
|
|
||||||
public boolean onPreDraw() {
|
|
||||||
taskView.getViewTreeObserver().removeOnPreDrawListener(this);
|
|
||||||
WindowManagerWrapper.getInstance().endProlongedAnimations();
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
AbstractFloatingView.closeOpenViews(activity, true,
|
AbstractFloatingView.closeOpenViews(activity, true,
|
||||||
AbstractFloatingView.TYPE_ALL & ~AbstractFloatingView.TYPE_REBIND_SAFE);
|
AbstractFloatingView.TYPE_ALL & ~AbstractFloatingView.TYPE_REBIND_SAFE);
|
||||||
|
|
||||||
@@ -182,7 +173,6 @@ public class TaskSystemShortcut<T extends SystemShortcut> extends SystemShortcut
|
|||||||
// afterwards
|
// afterwards
|
||||||
recentsView.addIgnoreResetTask(taskView);
|
recentsView.addIgnoreResetTask(taskView);
|
||||||
taskView.setAlpha(0f);
|
taskView.setAlpha(0f);
|
||||||
taskView.getViewTreeObserver().addOnPreDrawListener(preDrawListener);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
final int[] position = new int[2];
|
final int[] position = new int[2];
|
||||||
|
|||||||
Reference in new issue
Block a user