mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-24 07:01:05 +00:00
Debug info: fixed UI type
This commit is contained in:
parent
e89fd07148
commit
df4669eb8d
1 changed files with 2 additions and 2 deletions
|
@ -1690,7 +1690,7 @@ public class Helper {
|
|||
try {
|
||||
UiModeManager uimm = Helper.getSystemService(context, UiModeManager.class);
|
||||
int uiModeType = uimm.getCurrentModeType();
|
||||
switch (uiModeType) {
|
||||
switch (uiModeType & Configuration.UI_MODE_TYPE_MASK) {
|
||||
case Configuration.UI_MODE_TYPE_UNDEFINED:
|
||||
return "undefined";
|
||||
case Configuration.UI_MODE_TYPE_NORMAL:
|
||||
|
@ -1702,7 +1702,7 @@ public class Helper {
|
|||
case Configuration.UI_MODE_TYPE_TELEVISION:
|
||||
return "television";
|
||||
case Configuration.UI_MODE_TYPE_APPLIANCE:
|
||||
return "applicance";
|
||||
return "appliance";
|
||||
case Configuration.UI_MODE_TYPE_WATCH:
|
||||
return "watch";
|
||||
case Configuration.UI_MODE_TYPE_VR_HEADSET:
|
||||
|
|
Loading…
Reference in a new issue