mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-02 00:36:49 +00:00
Merge "Prevent exception when quick switching between two split pairs" into udc-dev am: 26d5493e69
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/23792388 Change-Id: I26c979ac6002a5eb02a6fdb4bc53d701bc37c699 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -473,16 +473,14 @@ public final class TaskViewUtils {
|
||||
throw new IllegalStateException(
|
||||
"Expected task to be showing, but it is " + mode);
|
||||
}
|
||||
if (change.getParent() == null) {
|
||||
throw new IllegalStateException("Initiating multi-split launch but the split"
|
||||
+ "root of " + taskId + " is already visible or has broken hierarchy.");
|
||||
}
|
||||
}
|
||||
if (taskId == initialTaskId) {
|
||||
splitRoot1 = transitionInfo.getChange(change.getParent());
|
||||
splitRoot1 = change.getParent() == null ? change :
|
||||
transitionInfo.getChange(change.getParent());
|
||||
}
|
||||
if (taskId == secondTaskId) {
|
||||
splitRoot2 = transitionInfo.getChange(change.getParent());
|
||||
splitRoot2 = change.getParent() == null ? change :
|
||||
transitionInfo.getChange(change.getParent());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user