What's the right way to dim the screen brightness ...
# compose
f
What's the right way to dim the screen brightness in Compose? Do I need a reference to the activity?
c
What we done is get
LocalContext.current
and cast it to
Activity
. I do not know other way currently.
f
thanks, that's what I've done too 👍
how do you reset to the normal brightness?
do you store that value somewhere?
nvm, I figured out that you can rest the brightness by setting it to a negative value