Fixed
Status Update
Comments
sr...@google.com <sr...@google.com>
jl...@google.com <jl...@google.com>
mr...@gmail.com <mr...@gmail.com> #2
Project: platform/frameworks/support
Branch: androidx-master-dev
commit 23a7d960caf43390a554700d3c56ada189a9d10e
Author: Louis Pullen-Freilich <lpf@google.com>
Date: Mon Aug 10 15:11:36 2020
IconButton / IconToggleButton API scrub
Test: ./gradlew updateApi
Bug: b/161809385
Bug: b/161807956
Relnote: "Adds enabled parameter to IconButton, and reorders parameters in IconToggleButton"
Change-Id: I0a9419b1a631cadad451395302ad87b7f9214f96
M ui/ui-material/api/current.txt
M ui/ui-material/api/public_plus_experimental_current.txt
M ui/ui-material/api/restricted_current.txt
M ui/ui-material/src/commonMain/kotlin/androidx/compose/material/IconButton.kt
https://android-review.googlesource.com/1394868
Branch: androidx-master-dev
commit 23a7d960caf43390a554700d3c56ada189a9d10e
Author: Louis Pullen-Freilich <lpf@google.com>
Date: Mon Aug 10 15:11:36 2020
IconButton / IconToggleButton API scrub
Test: ./gradlew updateApi
Bug:
Bug:
Relnote: "Adds enabled parameter to IconButton, and reorders parameters in IconToggleButton"
Change-Id: I0a9419b1a631cadad451395302ad87b7f9214f96
M ui/ui-material/api/current.txt
M ui/ui-material/api/public_plus_experimental_current.txt
M ui/ui-material/api/restricted_current.txt
M ui/ui-material/src/commonMain/kotlin/androidx/compose/material/IconButton.kt
an...@google.com <an...@google.com> #3
Compose 1.6.0-alpha02 included this fix in commit intValue
, floatValue
, etc. for your states. The warning should now correctly suggest these replacements, both in the message and in the suggested quickfix.
Description
DESCRIBE THE ISSUE IN DETAIL:
Example code:
color.value
When using
mutableIntState
andstate.value
, Android Studio correctly reports the issue, however provides an incorrect quick-fix:"Reading value will cause an autoboxing operation. Use <unknown replacement> to avoid unnecessary allocations."
Using the quick fix results into this:
color.<unknown replacement>
Screenshot is attached below.
Studio Build: Version of Gradle Plugin: 8.0.0 Version of Gradle: 8.0 OS: Windows 10