From 9007f9e11eb1f784a588e0526827e768307e4f8d Mon Sep 17 00:00:00 2001 From: Matthew Hague Date: Sun, 31 May 2020 16:23:34 +0100 Subject: [PATCH] System theme defaults to default theme --- .../hughes/android/dictionary/DictionaryApplication.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; } -- 2.43.0