Skip to content

Commit

Permalink
Update AppManager.java
Browse files Browse the repository at this point in the history
  • Loading branch information
digitalgust committed Oct 13, 2024
1 parent b71f1b4 commit 1eb7f1c
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions extlib/xgui/src/main/java/org/mini/apploader/AppManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 1eb7f1c

Please sign in to comment.