From: Matthew Hague Date: Sun, 31 May 2020 15:23:34 +0000 (+0100) Subject: System theme defaults to default theme X-Git-Url: http://gitweb.fperrin.net/?p=Dictionary.git;a=commitdiff_plain;h=9007f9e11eb1f784a588e0526827e768307e4f8d System theme defaults to default theme --- diff --git a/src/com/hughes/android/dictionary/DictionaryApplication.java b/src/com/hughes/android/dictionary/DictionaryApplication.java index fa4571c..840f8ff 100644 --- a/src/com/hughes/android/dictionary/DictionaryApplication.java +++ b/src/com/hughes/android/dictionary/DictionaryApplication.java @@ -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; }