mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-01 14:46:31 +02:00
Added UI mode to debug info
This commit is contained in:
@@ -1014,7 +1014,7 @@ 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=" + Integer.toHexString(uiMode));
|
||||
Log.i("UI mode=0x" + Integer.toHexString(uiMode));
|
||||
return ((uiMode & Configuration.UI_MODE_NIGHT_YES) != 0);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user