Fixed
Status Update
Comments
ap...@google.com <ap...@google.com> #2
I looked at the code and an
It's assuming that MediaStore.getPickImagesMaxLimit()
is only on Tiramisu (API 33), even though it's available on API 30+ when the picker is available (Mainline doesn't have the right annotation to highlight that a method/property can be back-ported in the Java documentation).
I'll submit a fix on Monday.
na...@google.com <na...@google.com> #3
Project: platform/frameworks/support
Branch: androidx-main
commit b6e550f1d34c626468406108f17e94c4eaa23cad
Author: Jeremy Woods <jbwoods@google.com>
Date: Tue Oct 11 13:28:19 2022
Remove Android T checks from MediaStore calls
The MediaStore.getPickImagesMaxLimit() API is available prior to Android
T, but studio sees it as an error cause it uses platform extensions.
RelNote: "The `PickVisualMedia` contract will now work correctly Android
R and above."
Test: all existing test pass
Bug: 249182130
Change-Id: Ie277697928c3af81460f8620ebf6b37bbe0649d1
A activity/activity/lint-baseline.xml
M activity/activity/src/main/java/androidx/activity/result/contract/ActivityResultContracts.kt
https://android-review.googlesource.com/2250183
Branch: androidx-main
commit b6e550f1d34c626468406108f17e94c4eaa23cad
Author: Jeremy Woods <jbwoods@google.com>
Date: Tue Oct 11 13:28:19 2022
Remove Android T checks from MediaStore calls
The MediaStore.getPickImagesMaxLimit() API is available prior to Android
T, but studio sees it as an error cause it uses platform extensions.
RelNote: "The `PickVisualMedia` contract will now work correctly Android
R and above."
Test: all existing test pass
Bug: 249182130
Change-Id: Ie277697928c3af81460f8620ebf6b37bbe0649d1
A activity/activity/lint-baseline.xml
M activity/activity/src/main/java/androidx/activity/result/contract/ActivityResultContracts.kt
Description
From feedback;