https://kotlinlang.org logo
#compose
Title
# compose
n

Nat Strangerweather

02/23/2022, 5:52 PM
Using
Modifier.clickable
I still get no touch sound on my device. Was this ever reported, considered? Are there any workarounds?
a

Adam Powell

02/23/2022, 5:58 PM
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

Nat Strangerweather

02/23/2022, 5:59 PM
Ha ha, I like my touch sounds lol. Ok thanks for the reply! 😊
z

Zach Klippenstein (he/him) [MOD]

02/24/2022, 12:33 AM
I’m pretty sure I’ve seen code that looks like it’s supposed to implement this?
d

darkmoon_uk

05/03/2023, 7:32 AM
Checking in on this; QA immediately noticed that our XML -> Compose converted UI was missing haptic clicks. They're right! Compose just...forgot this?
28 Views