From 1eb7f1cba10866ca5bb23df21f66f65664f31b61 Mon Sep 17 00:00:00 2001 From: Gust Date: Mon, 14 Oct 2024 00:50:59 +0800 Subject: [PATCH] Update AppManager.java --- .../java/org/mini/apploader/AppManager.java | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/extlib/xgui/src/main/java/org/mini/apploader/AppManager.java b/extlib/xgui/src/main/java/org/mini/apploader/AppManager.java index 46aed3c8..d5abf405 100644 --- a/extlib/xgui/src/main/java/org/mini/apploader/AppManager.java +++ b/extlib/xgui/src/main/java/org/mini/apploader/AppManager.java @@ -554,16 +554,14 @@ public boolean paint(long vg) { if (delayLauncher != null) { GForm.flush(); -// String osname = System.getProperty("os.name"); -// if ("iOS".equals(osname) || "Android".equals(osname)) { -// float w = GCallBack.getInstance().getDeviceWidth(); -// float h = GCallBack.getInstance().getDeviceHeight(); -// if ("h".equals(appOri)) { -// if (w < h) return true; -// } else { -// if (h < w) return true; -// } -// } + String osname = System.getProperty("os.name"); + if ("iOS".equals(osname) || "Android".equals(osname)) { + float w = GCallBack.getInstance().getDeviceWidth(); + float h = GCallBack.getInstance().getDeviceHeight(); + if ("h".equals(appOri)) { + if (w < h) return true; + } + } try { delayLauncher.run(); } catch (Exception e) {