mirror of https://github.com/M66B/FairEmail.git
Explicitly disable force dark
This commit is contained in:
parent
d87a1e6949
commit
e28ddd4002
|
@ -101,6 +101,7 @@
|
|||
android:name=".ApplicationEx"
|
||||
android:allowBackup="false"
|
||||
android:appCategory="productivity"
|
||||
android:forceDarkAllowed="false"
|
||||
android:icon="@mipmap/ic_launcher"
|
||||
android:label="@string/app_name"
|
||||
android:networkSecurityConfig="@xml/network_security_config"
|
||||
|
|
|
@ -101,6 +101,7 @@
|
|||
android:name=".ApplicationEx"
|
||||
android:allowBackup="false"
|
||||
android:appCategory="productivity"
|
||||
android:forceDarkAllowed="false"
|
||||
android:icon="@mipmap/ic_launcher"
|
||||
android:label="@string/app_name"
|
||||
android:networkSecurityConfig="@xml/network_security_config"
|
||||
|
|
|
@ -101,6 +101,7 @@
|
|||
android:name=".ApplicationEx"
|
||||
android:allowBackup="false"
|
||||
android:appCategory="productivity"
|
||||
android:forceDarkAllowed="false"
|
||||
android:icon="@mipmap/ic_launcher"
|
||||
android:label="@string/app_name"
|
||||
android:networkSecurityConfig="@xml/network_security_config"
|
||||
|
|
|
@ -868,8 +868,8 @@ public class Helper {
|
|||
static boolean isNight(Context context) {
|
||||
// https://developer.android.com/guide/topics/ui/look-and-feel/darktheme#configuration_changes
|
||||
int uiMode = context.getResources().getConfiguration().uiMode;
|
||||
Log.i("UI mode=" + uiMode);
|
||||
return ((uiMode & Configuration.UI_MODE_NIGHT_MASK) == Configuration.UI_MODE_NIGHT_YES);
|
||||
Log.i("UI mode=" + Integer.toHexString(uiMode));
|
||||
return ((uiMode & Configuration.UI_MODE_NIGHT_YES) != 0);
|
||||
}
|
||||
|
||||
static boolean isDarkTheme(Context context) {
|
||||
|
|
|
@ -101,6 +101,7 @@
|
|||
android:name=".ApplicationEx"
|
||||
android:allowBackup="false"
|
||||
android:appCategory="productivity"
|
||||
android:forceDarkAllowed="false"
|
||||
android:icon="@mipmap/ic_launcher"
|
||||
android:label="@string/app_name"
|
||||
android:networkSecurityConfig="@xml/network_security_config"
|
||||
|
|
Loading…
Reference in New Issue