Last active
May 14, 2020 07:35
-
-
Save sakshampruthi/d4c37598af04fcb5cd96924a7e06dba1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
when(SaveSharedPrefernce.getChecktheme(applicationContext)) { | |
0 -> AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_FOLLOW_SYSTEM) | |
1 -> AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_YES) | |
2 -> AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_NO) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment