determine if Android device isTablet (simple)

This commit is contained in:
Anthony Calosa
2020-11-25 12:26:43 +08:00
parent 7217143b36
commit 55fdc35359
6 changed files with 30 additions and 12 deletions

View File

@@ -96,8 +96,8 @@ public class Main {
ForgePreferences prefs = FModel.getPreferences();
boolean propertyConfig = prefs != null && prefs.getPrefBoolean(ForgePreferences.FPref.UI_NETPLAY_COMPAT);
new LwjglApplication(Forge.getApp(new LwjglClipboard(), new DesktopAdapter(switchOrientationFile),//todo get totalRAM
desktopMode ? desktopModeAssetsDir : assetsDir, propertyConfig, false, 0), config);
new LwjglApplication(Forge.getApp(new LwjglClipboard(), new DesktopAdapter(switchOrientationFile),//todo get totalRAM && isTabletDevice
desktopMode ? desktopModeAssetsDir : assetsDir, propertyConfig, false, 0, false), config);
}
private static class DesktopAdapter implements IDeviceAdapter {