Toast not shown in Honor 8XS #120

This commit is contained in:
EddyVerbruggen 2018-11-10 20:40:18 +01:00
parent 8869b81749
commit 440ea5bded
3 changed files with 6 additions and 5 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "cordova-plugin-x-toast", "name": "cordova-plugin-x-toast",
"version": "2.7.0", "version": "2.7.1",
"description": "This plugin allows you to show a Toast. A Toast is a little non intrusive buttonless popup which automatically disappears.", "description": "This plugin allows you to show a Toast. A Toast is a little non intrusive buttonless popup which automatically disappears.",
"cordova": { "cordova": {
"id": "cordova-plugin-x-toast", "id": "cordova-plugin-x-toast",

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0" <plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
id="cordova-plugin-x-toast" id="cordova-plugin-x-toast"
version="2.7.0"> version="2.7.1">
<name>Toast</name> <name>Toast</name>

View File

@ -195,9 +195,10 @@ public class Toast extends CordovaPlugin {
_timer = new CountDownTimer(hideAfterMs, 2500) { _timer = new CountDownTimer(hideAfterMs, 2500) {
public void onTick(long millisUntilFinished) { public void onTick(long millisUntilFinished) {
// see https://github.com/EddyVerbruggen/Toast-PhoneGap-Plugin/issues/116 // see https://github.com/EddyVerbruggen/Toast-PhoneGap-Plugin/issues/116
if (!IS_AT_LEAST_PIE) { // and https://github.com/EddyVerbruggen/Toast-PhoneGap-Plugin/issues/120
toast.show(); // if (!IS_AT_LEAST_PIE) {
} // toast.show();
// }
} }
public void onFinish() { public void onFinish() {
returnTapEvent("hide", msg, data, callbackContext); returnTapEvent("hide", msg, data, callbackContext);