Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
View issue level access limits(Press Alt + Right arrow for more information)
Attachment actions
Unintended behavior
View staffing
Description
override fun onCreate(savedInstanceState: Bundle?) {
val sharedPrefs = getSharedPreferences(shared_prefs, MODE_PRIVATE)
val themeMode = sharedPrefs.getInt(theme_key, AppCompatDelegate.MODE_NIGHT_NO)
AppCompatDelegate.setDefaultNightMode(themeMode)
super.onCreate(savedInstanceState)
binding = ActivityMainBinding.inflate(layoutInflater)
setContentView(binding.root)
some users face sometimes with wrong white theme (i will leave screenShots of wrong and right themes)
why i get this behavior?