]> gitweb.fperrin.net Git - Dictionary.git/blobdiff - src/com/hughes/android/dictionary/DictionaryApplication.java
System theme defaults to default theme
[Dictionary.git] / 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;
         }