From 9757e2c04c3d4cb07b80557864879063de2b12d6 Mon Sep 17 00:00:00 2001 From: Patrick Frisch Date: Tue, 21 Aug 2018 16:46:09 +0200 Subject: [PATCH] Remove show toast method call from cancel timer to ensure that toast show is called only once. --- src/android/nl/xservices/plugins/Toast.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/android/nl/xservices/plugins/Toast.java b/src/android/nl/xservices/plugins/Toast.java index a572481..f77b007 100644 --- a/src/android/nl/xservices/plugins/Toast.java +++ b/src/android/nl/xservices/plugins/Toast.java @@ -192,7 +192,7 @@ public class Toast extends CordovaPlugin { } // trigger show every 2500 ms for as long as the requested duration _timer = new CountDownTimer(hideAfterMs, 2500) { - public void onTick(long millisUntilFinished) {toast.show();} + public void onTick(long millisUntilFinished) { } public void onFinish() { returnTapEvent("hide", msg, data, callbackContext); toast.cancel();