Don't crash when swiping up if there are no TaskViews

am: d2d58656a4

Change-Id: I251ffd2ad1103efe1313e52e05f8a027789312d4
This commit is contained in:
Tony Wickham
2019-09-23 15:44:27 -07:00
committed by android-build-merger
@@ -381,6 +381,10 @@ public final class LauncherActivityControllerHelper implements ActivityControlHe
TaskView runningTaskView = recentsView.getRunningTaskView();
if (runningTaskView == null) {
runningTaskView = recentsView.getTaskViewAt(recentsView.getCurrentPage());
if (runningTaskView == null) {
// There are no task views in LockTask mode when Overview is enabled.
return;
}
}
TimeInterpolator oldInterpolator = translateY.getInterpolator();
Rect fallbackInsets = launcher.getDeviceProfile().getInsets();