Skip to content

Instantly share code, notes, and snippets.

@davidelp68
Created January 3, 2022 08:18
Show Gist options
  • Save davidelp68/cf475c8e29ab5103aa57f761806bac4b to your computer and use it in GitHub Desktop.
Save davidelp68/cf475c8e29ab5103aa57f761806bac4b to your computer and use it in GitHub Desktop.
Android Studio - Night/Day
val mode = AppCompatDelegate.getDefaultNightMode()
sharedPrefsEdit.putInt("NightMode", mode)
sharedPrefsEdit.apply()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment