Minor bug fix

This commit is contained in:
ElNinjaGaiden 2016-05-31 11:25:10 -06:00
parent b3e3d8b858
commit 0b76cb8811

View File

@ -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;