Fixed
Status Update
Comments
jg...@google.com <jg...@google.com>
jg...@google.com <jg...@google.com>
an...@google.com <an...@google.com> #3
Android Gradle Plugin: 8.7.1
Could you try the latest canary, AGP 8.8.0-alpha09
?
an...@google.com <an...@google.com> #4
I just updated to Android Gradle Plugin: 8.7.2 and the bug is fixed.
Description
Hello, I found that calling
context.getSystemService(Context.VIBRATOR_SERVICE)
leads to a crash if run in the IDE preview, even in interactive preview, which is quite annoying when you have haptics linked to touch interaction for example.Why isn't that implemented as a no-op in the IDE, or implemented through speakers, or as a visual indicator to see when the vibrator is asked to be running?
All the details are below, have a good one!
Louis CAD
Jetpack Compose version: 1.2.1
Jetpack Compose component(s) used: IDE preview
Android Studio Build:
Kotlin version: 1.7.10
Steps to Reproduce or Code Sample to Reproduce:
LocalContext.current.getSystemService(Context.VIBRATOR_SERVICE)
in a@Composable
functionStack trace (if applicable):