Skip to content

Commit

Permalink
The MINIX NEO-U1 is now being reported as Android TV
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Aug 9, 2018
1 parent 28e0c0e commit cf82309
Showing 1 changed file with 7 additions and 1 deletion.
Expand Up @@ -767,7 +767,13 @@ public static Context getContext() {
*/
public static boolean isAndroidTV() {
UiModeManager uiModeManager = (UiModeManager) getContext().getSystemService(UI_MODE_SERVICE);
return (uiModeManager.getCurrentModeType() == Configuration.UI_MODE_TYPE_TELEVISION);
if (uiModeManager.getCurrentModeType() == Configuration.UI_MODE_TYPE_TELEVISION) {
return true;
}
if (Build.MANUFACTURER.equals("MINIX") && Build.MODEL.equals("NEO-U1")) {
return true;
}
return false;
}

/**
Expand Down

0 comments on commit cf82309

Please sign in to comment.