forked from github/Toast-PhoneGap-Plugin
Minor bug fix
This commit is contained in:
parent
b3e3d8b858
commit
0b76cb8811
@ -193,7 +193,10 @@ public class Toast extends CordovaPlugin {
|
|||||||
// trigger show every 2500 ms for as long as the requested duration
|
// trigger show every 2500 ms for as long as the requested duration
|
||||||
_timer = new CountDownTimer(hideAfterMs, 2500) {
|
_timer = new CountDownTimer(hideAfterMs, 2500) {
|
||||||
public void onTick(long millisUntilFinished) {toast.show();}
|
public void onTick(long millisUntilFinished) {toast.show();}
|
||||||
public void onFinish() {toast.cancel();}
|
public void onFinish() {
|
||||||
|
returnTapEvent("hide", msg, data, callbackContext);
|
||||||
|
toast.cancel();
|
||||||
|
}
|
||||||
}.start();
|
}.start();
|
||||||
|
|
||||||
mostRecentToast = toast;
|
mostRecentToast = toast;
|
||||||
|
Loading…
Reference in New Issue
Block a user