Merge "Don't create unexpected display cutout or rounded corners" into tm-dev am: 17267e883a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18179577 Change-Id: I007008035f6f5d931ba7c760f24a18bb94272415 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -2922,7 +2922,7 @@ class DisplayContent extends RootDisplayArea implements WindowManagerPolicy.Disp
|
|||||||
}
|
}
|
||||||
|
|
||||||
DisplayCutout loadDisplayCutout(int displayWidth, int displayHeight) {
|
DisplayCutout loadDisplayCutout(int displayWidth, int displayHeight) {
|
||||||
if (mDisplayPolicy == null) {
|
if (mDisplayPolicy == null || mInitialDisplayCutout == null) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
return DisplayCutout.fromResourcesRectApproximation(
|
return DisplayCutout.fromResourcesRectApproximation(
|
||||||
@@ -2931,7 +2931,7 @@ class DisplayContent extends RootDisplayArea implements WindowManagerPolicy.Disp
|
|||||||
}
|
}
|
||||||
|
|
||||||
RoundedCorners loadRoundedCorners(int displayWidth, int displayHeight) {
|
RoundedCorners loadRoundedCorners(int displayWidth, int displayHeight) {
|
||||||
if (mDisplayPolicy == null) {
|
if (mDisplayPolicy == null || mInitialRoundedCorners == null) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
return RoundedCorners.fromResources(
|
return RoundedCorners.fromResources(
|
||||||
|
|||||||
Reference in New Issue
Block a user