You will have to also use shared preferences inside your startup/launcher activity to set the dark mode to your desired setting once the activity is created. I have made these changes in the github repo. Take a look. Hope it's helpful.
Awesome. One more thing, will the code change if i want to use SwitchPreference?
Not much really. Even the methods used should remain the same. Switch preference will have to be implemented and that's pretty much it.
Okay, that really helps.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
You will have to also use shared preferences inside your startup/launcher activity to set the dark mode to your desired setting once the activity is created. I have made these changes in the github repo. Take a look. Hope it's helpful.
Awesome. One more thing, will the code change if i want to use SwitchPreference?
Not much really. Even the methods used should remain the same. Switch preference will have to be implemented and that's pretty much it.
Okay, that really helps.