MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / runAndWait

Method runAndWait

CodenameOne/src/com/codename1/ui/URLImage.java:483–495  ·  view source on GitHub ↗
(Runnable r)

Source from the content-addressed store, hash-verified

481 }
482
483 private void runAndWait(Runnable r) {
484 if (platformSupportsImageLoadingOffEdt()) {
485 String oldShowEDTWarnings = CN.getProperty("platformHint.showEDTWarnings", "false");
486 CN.setProperty("platformHint.showEDTWarnings", "false");
487 try {
488 r.run();
489 } finally {
490 CN.setProperty("platformHint.showEDTWarnings", oldShowEDTWarnings);
491 }
492 } else {
493 CN.callSeriallyAndWait(r);
494 }
495 }
496
497 private boolean platformSupportsImageLoadingOffEdt() {
498 return CN.isSimulator() || !"ios".equals(CN.getPlatformName());

Callers 1

runMethod · 0.95

Calls 5

getPropertyMethod · 0.95
setPropertyMethod · 0.95
callSeriallyAndWaitMethod · 0.95
runMethod · 0.65

Tested by

no test coverage detected