google / accompanist

A collection of extension libraries for Jetpack Compose
https://google.github.io/accompanist
Apache License 2.0
7.34k stars 593 forks source link

[System UI Controller] Can calls to show/hide system ui be idempotent? #1708

Closed saket closed 11 months ago

saket commented 11 months ago
val systemUi = rememberSystemUiController()
systemUi.isSystemBarsVisible = zoomState.zoomFraction == 0f

If the above code is recomposed twice, the system bars play their entry animation twice. Can accompanist check whether the system bars are visible before actually setting the value?

bentrengrove commented 11 months ago

Unfortunately Accompanist SystemUIController has been deprecated and won't be supported going forwards. I am closing this issue. For more information please see our update blog