Skip to content

Commit 8eaeebd

Browse files
committed
System default night mode.
1 parent e625f45 commit 8eaeebd

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

app/src/main/java/com/owncloud/android/MainApp.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -882,10 +882,7 @@ public AndroidInjector<Object> androidInjector() {
882882
}
883883

884884
public static void setAppTheme(DarkMode mode) {
885-
switch (mode) {
886-
case LIGHT -> AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_NO);
887-
case DARK -> AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_YES);
888-
case SYSTEM -> AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_FOLLOW_SYSTEM);
889-
}
885+
// NMC Customization -> Always follow system theme
886+
AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_FOLLOW_SYSTEM);
890887
}
891888
}

0 commit comments

Comments
 (0)