Added UI mode to debug info

This commit is contained in:
M66B
2021-06-05 08:47:26 +02:00
parent 050c2b7ecf
commit 2ac4e0fa0f
2 changed files with 19 additions and 1 deletions

View File

@@ -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);
}