Merge "Guard absent SplitScreen in PipTaskOrganizer" into sc-v2-dev am: c35cf07c60
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16332338 Change-Id: I61387fd8f0e0e7fd9915101223df3681e37e15bb
This commit is contained in:
@@ -1282,6 +1282,9 @@ public class PipTaskOrganizer implements ShellTaskOrganizer.TaskListener,
|
|||||||
}
|
}
|
||||||
|
|
||||||
private boolean isPipTopLeft() {
|
private boolean isPipTopLeft() {
|
||||||
|
if (!mSplitScreenOptional.isPresent()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
final Rect topLeft = new Rect();
|
final Rect topLeft = new Rect();
|
||||||
final Rect bottomRight = new Rect();
|
final Rect bottomRight = new Rect();
|
||||||
mSplitScreenOptional.get().getStageBounds(topLeft, bottomRight);
|
mSplitScreenOptional.get().getStageBounds(topLeft, bottomRight);
|
||||||
|
|||||||
Reference in New Issue
Block a user