Merge "Add null check before playing recents scale down anim" into ub-launcher3-edmonton-polish
This commit is contained in:
commit
ae71e086a2
|
@ -294,6 +294,9 @@ public interface ActivityControlHelper<T extends BaseDraggingActivity> {
|
|||
private void playScaleDownAnim(AnimatorSet anim, Launcher launcher) {
|
||||
RecentsView recentsView = launcher.getOverviewPanel();
|
||||
TaskView v = recentsView.getTaskViewAt(recentsView.getCurrentPage());
|
||||
if (v == null) {
|
||||
return;
|
||||
}
|
||||
ClipAnimationHelper clipHelper = new ClipAnimationHelper();
|
||||
clipHelper.fromTaskThumbnailView(v.getThumbnail(), (RecentsView) v.getParent(), null);
|
||||
if (!clipHelper.getSourceRect().isEmpty() && !clipHelper.getTargetRect().isEmpty()) {
|
||||
|
|
Loading…
Reference in New Issue