Commit c1160f2b by Caijinglong

the android toast use single instance

parent 9d283af7
......@@ -46,7 +46,7 @@ class FluttertoastPlugin(context: Context): MethodCallHandler {
val toast: Toast = this.toast?:Toast.makeText(ctx, msg, Toast.LENGTH_SHORT);
this.toast = toast
toast.text = msg;
toast.setText(msg)
if(length.equals("long")) {
toast.duration = Toast.LENGTH_LONG
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment