diff options
Diffstat (limited to 'quickstep/recents_ui_overrides/src/com/android/quickstep/LauncherActivityControllerHelper.java')
-rw-r--r-- | quickstep/recents_ui_overrides/src/com/android/quickstep/LauncherActivityControllerHelper.java | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/quickstep/recents_ui_overrides/src/com/android/quickstep/LauncherActivityControllerHelper.java b/quickstep/recents_ui_overrides/src/com/android/quickstep/LauncherActivityControllerHelper.java index 408b749a6..9650a5316 100644 --- a/quickstep/recents_ui_overrides/src/com/android/quickstep/LauncherActivityControllerHelper.java +++ b/quickstep/recents_ui_overrides/src/com/android/quickstep/LauncherActivityControllerHelper.java @@ -100,10 +100,14 @@ public final class LauncherActivityControllerHelper implements ActivityControlHe public HomeAnimationFactory prepareHomeUI(Launcher activity) { final DeviceProfile dp = activity.getDeviceProfile(); final RecentsView recentsView = activity.getOverviewPanel(); - final ComponentName component = recentsView.getRunningTaskView().getTask().key - .sourceComponent; - - final View workspaceView = activity.getWorkspace().getFirstMatchForAppClose(component); + final TaskView runningTaskView = recentsView.getRunningTaskView(); + final View workspaceView; + if (runningTaskView != null) { + ComponentName component = runningTaskView.getTask().key.sourceComponent; + workspaceView = activity.getWorkspace().getFirstMatchForAppClose(component); + } else { + workspaceView = null; + } final Rect iconLocation = new Rect(); final FloatingIconView floatingView = workspaceView == null ? null : FloatingIconView.getFloatingIconView(activity, workspaceView, |