Created
December 23, 2019 12:13
-
-
Save kfaraj/8472106d6f1b3c99a5accaf8f9a3d8a1 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
val prefs = PreferenceManager.getDefaultSharedPreferences(this) | |
prefs.edit().putInt(Settings.NIGHT_MODE, mode).apply() | |
AppCompatDelegate.setDefaultNightMode(mode) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment