Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update SettingsViewModel.kt
updated for just commit
  • Loading branch information
yannigoyal committed Jul 11, 2025
commit 8bacb1c3aa5e975ca6ef292f84a3a50b3c7d44e1
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ class SettingsViewModel @Inject constructor(
DARK -> AppCompatDelegate.MODE_NIGHT_YES
}
AppCompatDelegate.setDefaultNightMode(splashMode)

if (Build.VERSION.SDK_INT >= VERSION_CODES.S) {
val uiModeMode = when (darkThemeConfig) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

uiModeMode should be renamed, why not simply uiMode or nightMode?

FOLLOW_SYSTEM -> UiModeManager.MODE_NIGHT_AUTO
Expand Down