google/accompanist

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

saket opened this issue · 1 comments

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?

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