Merge "Do not create starting window if there is no task." into tm-dev am: 33e3f60e06
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18555351 Change-Id: I2d5d7c29b2e6cc301ae5d92e882bc9191af7ba1d Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -220,6 +220,11 @@ public class StartingSurfaceController {
|
|||||||
// Attempt to add starting window from the top-most activity.
|
// Attempt to add starting window from the top-most activity.
|
||||||
for (int i = mDeferringAddStartActivities.size() - 1; i >= 0; --i) {
|
for (int i = mDeferringAddStartActivities.size() - 1; i >= 0; --i) {
|
||||||
final DeferringStartingWindowRecord next = mDeferringAddStartActivities.get(i);
|
final DeferringStartingWindowRecord next = mDeferringAddStartActivities.get(i);
|
||||||
|
if (next.mDeferring.getTask() == null) {
|
||||||
|
Slog.e(TAG, "No task exists: " + next.mDeferring.shortComponentName
|
||||||
|
+ " parent: " + next.mDeferring.getParent());
|
||||||
|
continue;
|
||||||
|
}
|
||||||
next.mDeferring.showStartingWindow(next.mPrev, mInitNewTask, mInitTaskSwitch,
|
next.mDeferring.showStartingWindow(next.mPrev, mInitNewTask, mInitTaskSwitch,
|
||||||
mInitProcessRunning, true /* startActivity */, next.mSource, topOptions);
|
mInitProcessRunning, true /* startActivity */, next.mSource, topOptions);
|
||||||
// If one succeeds, it is done.
|
// If one succeeds, it is done.
|
||||||
|
|||||||
Reference in New Issue
Block a user