Fixed
Status Update
Comments
al...@google.com <al...@google.com> #2
Triaging to platform owner for compat impl consideration.
sh...@google.com <sh...@google.com>
va...@google.com <va...@google.com>
ap...@google.com <ap...@google.com> #3
Project: platform/frameworks/support
Branch: androidx-main
commit 11bd61bfd9c7ee19f1c72223ed411189bbbfbe24
Author: Alex Vanyo <vanyo@google.com>
Date: Thu Mar 07 22:01:06 2024
Add DisplayCutoutCompat.getCutoutPath
This is mostly a straightforward exposing of the platform method in the
Compat APIs.
One subtletly is that since DisplayCutout.Builder was only added in API
33, the corresponding DisplayCutoutCompat constructor that takes a
cutout path will only add the cutout path on API 33 and above, as on API 31 and
API 32 there isn't a public way to create a platform DisplayCutout for
testing with a cutout path, even though on those APIs a "real"
DisplayCutout can include the cutout path.
Relnote: "Added DisplayCutoutCompat.getCutoutPath"
Fixes: 279635904
Test: new test
Change-Id: I58778bb5c23837304fb5130644f9f4412884cdc2
M core/core/api/current.txt
M core/core/api/restricted_current.txt
M core/core/src/androidTest/java/androidx/core/view/DisplayCutoutCompatTest.java
M core/core/src/main/java/androidx/core/view/DisplayCutoutCompat.java
https://android-review.googlesource.com/2995124
Branch: androidx-main
commit 11bd61bfd9c7ee19f1c72223ed411189bbbfbe24
Author: Alex Vanyo <vanyo@google.com>
Date: Thu Mar 07 22:01:06 2024
Add DisplayCutoutCompat.getCutoutPath
This is mostly a straightforward exposing of the platform method in the
Compat APIs.
One subtletly is that since DisplayCutout.Builder was only added in API
33, the corresponding DisplayCutoutCompat constructor that takes a
cutout path will only add the cutout path on API 33 and above, as on API 31 and
API 32 there isn't a public way to create a platform DisplayCutout for
testing with a cutout path, even though on those APIs a "real"
DisplayCutout can include the cutout path.
Relnote: "Added DisplayCutoutCompat.getCutoutPath"
Fixes: 279635904
Test: new test
Change-Id: I58778bb5c23837304fb5130644f9f4412884cdc2
M core/core/api/current.txt
M core/core/api/restricted_current.txt
M core/core/src/androidTest/java/androidx/core/view/DisplayCutoutCompatTest.java
M core/core/src/main/java/androidx/core/view/DisplayCutoutCompat.java
na...@google.com <na...@google.com> #4
The following release(s) address this bug.It is possible this bug has only been partially addressed:
androidx.core:core:1.15.0-alpha02
Description
DisplayCutout.getCutoutPath
DisplayCutoutCompat
:DisplayCutoutCompat
should contain the cutout path information.