Skip to content
This repository has been archived by the owner on Jun 3, 2021. It is now read-only.

Commit

Permalink
[android][WEEX-474] when the app's WXInstance destroy, but Weex page …
Browse files Browse the repository at this point in the history
…call toast Toast ,crash
  • Loading branch information
jianbai.gbj authored and YorkShen committed Jun 27, 2018
1 parent 15e8df0 commit 3186206
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@ public class WXModalUIModule extends WXSDKEngine.DestroyableModule {

@JSMethod(uiThread = true)
public void toast(JSONObject jsObj) {

if(mWXSDKInstance.getContext() == null){
return;
}
String message = "";
int duration = Toast.LENGTH_SHORT;
if (jsObj != null) {
Expand Down

0 comments on commit 3186206

Please sign in to comment.