Merge "Add null check before playing recents scale down anim" into ub-launcher3-edmonton-polish

This commit is contained in:
Tony Wickham 2018-07-19 21:55:36 +00:00 committed by Android (Google) Code Review
commit ae71e086a2
1 changed files with 3 additions and 0 deletions

View File

@ -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()) {