]> gitweb.fperrin.net Git - Dictionary.git/commitdiff
System theme defaults to default theme
authorMatthew Hague <matthewhague@zoho.com>
Sun, 31 May 2020 15:23:34 +0000 (16:23 +0100)
committerReimar Döffinger <rdoeffinger@users.noreply.github.com>
Tue, 2 Jun 2020 15:36:07 +0000 (17:36 +0200)
src/com/hughes/android/dictionary/DictionaryApplication.java

index fa4571c6483773b73ec6c2454c11295432b6e740..840f8ffa30ce7523d7c517155f835049a9edcc56 100644 (file)
@@ -317,9 +317,9 @@ public enum DictionaryApplication {
         } else if (theme.equals("themeSystem")) {
             int mode = (appContext.getResources().getConfiguration().uiMode &
                         Configuration.UI_MODE_NIGHT_MASK);
-            return ((mode == Configuration.UI_MODE_NIGHT_YES) ?
-                    Theme.DEFAULT :
-                    Theme.LIGHT);
+            return ((mode == Configuration.UI_MODE_NIGHT_NO) ?
+                    Theme.LIGHT:
+                    Theme.DEFAULT);
         } else {
             return Theme.DEFAULT;
         }