Using `Modifier.clickable` I still get no touch so...
# compose
n
Using
Modifier.clickable
I still get no touch sound on my device. Was this ever reported, considered? Are there any workarounds?
a
I've had these turned off on every phone I've owned for over 10 years at this point so I certainly never noticed. 🙃 Worth filing on the issue tracker, workaround is to grab
LocalView.current
and then call
playSoundEffect(SoundEffectConstants.CLICK)
on it
would probably make a pretty straightforward PR for compose-foundation too
I think someone commented recently that the haptic feedback call was similarly absent
n
Ha ha, I like my touch sounds lol. Ok thanks for the reply! 😊
z
I’m pretty sure I’ve seen code that looks like it’s supposed to implement this?
d
Checking in on this; QA immediately noticed that our XML -> Compose converted UI was missing haptic clicks. They're right! Compose just...forgot this?