Merge "Prevent NPE when dropping app icon to split" into sc-v2-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
c739eabbd3
@@ -249,14 +249,17 @@ public class SplitScreenController implements DragAndDropPolicy.Starter,
|
|||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
} else {
|
||||||
for (int i = 0; i < apps.length; ++i) {
|
for (int i = 0; i < apps.length; ++i) {
|
||||||
if (apps[i].mode == MODE_OPENING) {
|
if (apps[i].mode == MODE_OPENING) {
|
||||||
t.show(apps[i].leash);
|
t.show(apps[i].leash);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
RemoteAnimationTarget divider = mStageCoordinator.getDividerBarLegacyTarget();
|
RemoteAnimationTarget divider = mStageCoordinator.getDividerBarLegacyTarget();
|
||||||
|
if (divider.leash != null) {
|
||||||
t.show(divider.leash);
|
t.show(divider.leash);
|
||||||
|
}
|
||||||
t.apply();
|
t.apply();
|
||||||
if (cancelled) return;
|
if (cancelled) return;
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user