From c131280e91e6dcc42775d92abfc606883092ce53 Mon Sep 17 00:00:00 2001 From: Johannes Mockenhaupt Date: Sun, 16 Jul 2017 17:11:32 +0200 Subject: [PATCH] RuffyScripter.verifyMenuIsDisplayed: don't call waitForMenuUpdate, menu should already be displayed. If not, wait up to 1 second. --- app/src/main/java/de/jotomo/ruffyscripter/RuffyScripter.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/main/java/de/jotomo/ruffyscripter/RuffyScripter.java b/app/src/main/java/de/jotomo/ruffyscripter/RuffyScripter.java index 71be5372fe..b4995de2ed 100644 --- a/app/src/main/java/de/jotomo/ruffyscripter/RuffyScripter.java +++ b/app/src/main/java/de/jotomo/ruffyscripter/RuffyScripter.java @@ -77,7 +77,7 @@ public class RuffyScripter { // converted into a command failure, but it's not classified as unrecoverable; // eventually we might try to recover ... check docs, there's also another // execption we should watch interacting with a remote service. - unrecoverableError = "Ruffy went away"; + unrecoverableError = "Ruffy service went away"; } catch (RemoteException e) { log.debug("Exception in idle disconnect monitor thread, carrying on", e); } @@ -350,7 +350,6 @@ public class RuffyScripter { } public void verifyMenuIsDisplayed(MenuType expectedMenu, String failureMessage) { - waitForMenuUpdate(); int retries = 5; while (currentMenu.getType() != expectedMenu) { if (retries > 0) {