mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-04-19 06:50:18 +02:00
Added SDL_IsChromebook() to determine if we're running on a Chromebook.
This commit is contained in:
@@ -695,6 +695,13 @@ public class SDLActivity extends Activity {
|
||||
return (uiModeManager.getCurrentModeType() == Configuration.UI_MODE_TYPE_TELEVISION);
|
||||
}
|
||||
|
||||
/**
|
||||
* This method is called by SDL using JNI.
|
||||
*/
|
||||
public static boolean isChromebook() {
|
||||
return getContext().getPackageManager().hasSystemFeature("org.chromium.arc.device_management");
|
||||
}
|
||||
|
||||
/**
|
||||
* This method is called by SDL using JNI.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user