Saving Switch State In Kotlin
Whenever I open the app and click the switch, dark mode turns on and it stays in the position. However, if I relaunch the app, the switch goes back to default, and dark mode is still on. How would I do this in Kotlin?
Also, is there any reference code for this in Kotlin?