Skip to content

Commit

Permalink
Merge pull request #118 from patrickfrisch/master
Browse files Browse the repository at this point in the history
Remove show toast method call from cancel timer to ensure that toast show is called only once.
  • Loading branch information
EddyVerbruggen authored Aug 22, 2018
2 parents 791beb0 + 9757e2c commit e4e18f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/android/nl/xservices/plugins/Toast.java
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ public boolean onTouch(View view, MotionEvent motionEvent) {
}
// 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();
Expand Down

0 comments on commit e4e18f1

Please sign in to comment.