Skip to content

Commit

Permalink
System default night mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
surinder-tsys committed Oct 31, 2023
1 parent 2e55cc5 commit 2c449d4
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions app/src/main/java/com/owncloud/android/MainApp.java
Original file line number Diff line number Diff line change
Expand Up @@ -867,16 +867,17 @@ public AndroidInjector<Object> androidInjector() {


public static void setAppTheme(DarkMode mode) {
switch (mode) {
/* switch (mode) {
case LIGHT:
AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_NO);
break;
case DARK:
AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_YES);
break;
case SYSTEM:
AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_FOLLOW_SYSTEM);
break;
}
case SYSTEM:*/
//NMC Customization --> always follow system default
AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_FOLLOW_SYSTEM);
/* break;
}*/
}
}

0 comments on commit 2c449d4

Please sign in to comment.