duration does not seem to accept values on "show" and "showWithOptions"methods (Android 8.0) #117

This commit is contained in:
EddyVerbruggen
2018-11-11 17:39:04 +01:00
parent 440ea5bded
commit 82f72d2da7
4 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -90,7 +90,7 @@ public class Toast extends CordovaPlugin {
final android.widget.Toast toast = android.widget.Toast.makeText(
IS_AT_LEAST_LOLLIPOP ? cordova.getActivity().getWindow().getContext() : cordova.getActivity().getApplicationContext(),
message,
android.widget.Toast.LENGTH_LONG // actually controlled by a timer further down
"short".equalsIgnoreCase(duration) ? android.widget.Toast.LENGTH_SHORT : android.widget.Toast.LENGTH_LONG
);
if ("top".equals(position)) {