Commit 119c5066 by Karthik Ponnam Committed by GitHub

Merge pull request #185 from wei-spring/master

bug fix (Toast invisable on huawei honor device )
parents fac85afc 426ccd34
......@@ -92,7 +92,16 @@ public class FluttertoastPlugin implements MethodCallHandler {
} else {
mToast.setGravity(mGravity, 0, 100);
}
mToast.show();
if (mContext instanceof Activity) {
((Activity) mContext).runOnUiThread(new Runnable() {
@Override
public void run() {
mToast.show();
}
});
} else {
mToast.show();
}
result.success(true);
break;
......
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