From 0b76cb88112ca77a89c508857decfb79fcec138c Mon Sep 17 00:00:00 2001 From: ElNinjaGaiden Date: Tue, 31 May 2016 11:25:10 -0600 Subject: [PATCH] Minor bug fix --- src/android/nl/xservices/plugins/Toast.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/android/nl/xservices/plugins/Toast.java b/src/android/nl/xservices/plugins/Toast.java index 201e857..a572481 100644 --- a/src/android/nl/xservices/plugins/Toast.java +++ b/src/android/nl/xservices/plugins/Toast.java @@ -193,7 +193,10 @@ 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 onFinish() {toast.cancel();} + public void onFinish() { + returnTapEvent("hide", msg, data, callbackContext); + toast.cancel(); + } }.start(); mostRecentToast = toast;