mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-02 07:06:18 +02:00
Small improvement
This commit is contained in:
@@ -1081,7 +1081,7 @@ public class Helper {
|
||||
// https://developer.android.com/guide/topics/ui/look-and-feel/darktheme#configuration_changes
|
||||
int uiMode = context.getResources().getConfiguration().uiMode;
|
||||
Log.i("UI mode=0x" + Integer.toHexString(uiMode));
|
||||
return ((uiMode & Configuration.UI_MODE_NIGHT_YES) != 0);
|
||||
return ((uiMode & Configuration.UI_MODE_NIGHT_MASK) == Configuration.UI_MODE_NIGHT_YES);
|
||||
}
|
||||
|
||||
static boolean isDarkTheme(Context context) {
|
||||
|
||||
Reference in New Issue
Block a user