Debug info: fixed UI type

pull/214/head
M66B 1 year ago
parent e89fd07148
commit df4669eb8d

@ -1690,7 +1690,7 @@ public class Helper {
try { try {
UiModeManager uimm = Helper.getSystemService(context, UiModeManager.class); UiModeManager uimm = Helper.getSystemService(context, UiModeManager.class);
int uiModeType = uimm.getCurrentModeType(); int uiModeType = uimm.getCurrentModeType();
switch (uiModeType) { switch (uiModeType & Configuration.UI_MODE_TYPE_MASK) {
case Configuration.UI_MODE_TYPE_UNDEFINED: case Configuration.UI_MODE_TYPE_UNDEFINED:
return "undefined"; return "undefined";
case Configuration.UI_MODE_TYPE_NORMAL: case Configuration.UI_MODE_TYPE_NORMAL:
@ -1702,7 +1702,7 @@ public class Helper {
case Configuration.UI_MODE_TYPE_TELEVISION: case Configuration.UI_MODE_TYPE_TELEVISION:
return "television"; return "television";
case Configuration.UI_MODE_TYPE_APPLIANCE: case Configuration.UI_MODE_TYPE_APPLIANCE:
return "applicance"; return "appliance";
case Configuration.UI_MODE_TYPE_WATCH: case Configuration.UI_MODE_TYPE_WATCH:
return "watch"; return "watch";
case Configuration.UI_MODE_TYPE_VR_HEADSET: case Configuration.UI_MODE_TYPE_VR_HEADSET:

Loading…
Cancel
Save