From ed4c81b5c239ed62a621b8305a300cb44da5f81d Mon Sep 17 00:00:00 2001 From: Ahmed El-Helw Date: Sun, 21 Mar 2021 01:52:29 +0400 Subject: [PATCH] Fix dark mode on Xiaomi devices (#1566) Xiaomi devices have a force dark mode that breaks the app's reading view and other views by trying to force them to be dark mode and changing the colors on their own. This disables this functionality. --- app/src/main/AndroidManifest.xml | 6 +++--- app/src/main/res/values-v29/themes.xml | 23 +++++++++++++++++++++++ app/src/main/res/values/themes.xml | 4 +++- 3 files changed, 29 insertions(+), 4 deletions(-) create mode 100644 app/src/main/res/values-v29/themes.xml diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 2879d32cf4..9b97586a3d 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -35,7 +35,7 @@ android:name=".QuranDataActivity" android:label="@string/app_name" android:configChanges="keyboardHidden|orientation|screenSize" - android:theme="@style/Theme.AppCompat.NoActionBar"> + android:theme="@style/QuranToolBar"> @@ -151,7 +151,7 @@ + android:theme="@style/QuranToolBar"/> + android:theme="@style/QuranDialog" /> diff --git a/app/src/main/res/values-v29/themes.xml b/app/src/main/res/values-v29/themes.xml new file mode 100644 index 0000000000..dd9ccdbe14 --- /dev/null +++ b/app/src/main/res/values-v29/themes.xml @@ -0,0 +1,23 @@ + + + + + + + + diff --git a/app/src/main/res/values/themes.xml b/app/src/main/res/values/themes.xml index 11c9a033d8..9d2923dd3e 100644 --- a/app/src/main/res/values/themes.xml +++ b/app/src/main/res/values/themes.xml @@ -18,4 +18,6 @@ - \ No newline at end of file + +