Fixed
Status Update
Comments
al...@google.com <al...@google.com> #2
Over to platform owner for consideration. I'm not sure we have a straightforward backport here, but Andrii probably knows.
ak...@google.com <ak...@google.com>
ch...@google.com <ch...@google.com> #3
I think we can use WindowManager#getDefaultDisplay before Context#getDisplay was introduced.
ch...@google.com <ch...@google.com>
ap...@google.com <ap...@google.com> #4
Project: platform/frameworks/support
Branch: androidx-main
commit af170d020b2af3a77741e8e130bb32570ff47602
Author: Charles Chen <charlesccchen@google.com>
Date: Wed Jun 08 15:06:38 2022
Introduce ContextCompat#getDisplay
Bug: 178183326
Test: ./gradlew core:core:cAT
Relnote: add ContextCompat#getDisplay(Context)
Change-Id: I7011fb43e667b46f8f161c7c6e169c1a7faa8847
M core/core/api/current.txt
M core/core/api/public_plus_experimental_current.txt
M core/core/api/restricted_current.txt
M core/core/src/androidTest/java/androidx/core/content/ContextCompatTest.java
M core/core/src/main/java/androidx/core/content/ContextCompat.java
https://android-review.googlesource.com/2117575
Branch: androidx-main
commit af170d020b2af3a77741e8e130bb32570ff47602
Author: Charles Chen <charlesccchen@google.com>
Date: Wed Jun 08 15:06:38 2022
Introduce ContextCompat#getDisplay
Bug: 178183326
Test: ./gradlew core:core:cAT
Relnote: add ContextCompat#getDisplay(Context)
Change-Id: I7011fb43e667b46f8f161c7c6e169c1a7faa8847
M core/core/api/current.txt
M core/core/api/public_plus_experimental_current.txt
M core/core/api/restricted_current.txt
M core/core/src/androidTest/java/androidx/core/content/ContextCompatTest.java
M core/core/src/main/java/androidx/core/content/ContextCompat.java
ju...@google.com <ju...@google.com> #5
The following release(s) address this bug.It is possible this bug has only been partially addressed:
androidx.core:core:1.11.0-beta01
Description
There is currently no method in
ContextCompat
for retrieving the display associated with aContext
in a backward compatible manner.