diff --git a/main/src/main/java/com/yunbao/main/activity/RewardActivity.java b/main/src/main/java/com/yunbao/main/activity/RewardActivity.java index 185f65de6..47655f3bb 100644 --- a/main/src/main/java/com/yunbao/main/activity/RewardActivity.java +++ b/main/src/main/java/com/yunbao/main/activity/RewardActivity.java @@ -43,6 +43,7 @@ import com.yunbao.common.interfaces.ActivityResultCallback; import com.yunbao.common.interfaces.CommonCallback; import com.yunbao.common.interfaces.ImageResultCallback; import com.yunbao.common.manager.IMLoginManager; +import com.yunbao.common.utils.Bus; import com.yunbao.common.utils.DpUtil; import com.yunbao.common.utils.JavascriptInterfaceUtils; import com.yunbao.common.utils.L; @@ -53,6 +54,7 @@ import com.yunbao.common.utils.ToastUtil; import com.yunbao.common.utils.WordUtil; import com.yunbao.main.R; import com.yunbao.main.http.MainHttpUtil; +import com.yunbao.share.ui.InvitePopDialog; import org.greenrobot.eventbus.Subscribe; import org.greenrobot.eventbus.ThreadMode; @@ -83,6 +85,7 @@ public class RewardActivity extends AbsActivity { @Override protected void main() { + Bus.getOn(this); String url = getIntent().getStringExtra(Constants.URL); L.e("H5---10>" + url); LinearLayout rootView = (LinearLayout) findViewById(R.id.rootView); @@ -330,6 +333,7 @@ public class RewardActivity extends AbsActivity { @Override protected void onDestroy() { + Bus.getOff(this); if (mWebView != null) { ViewGroup parent = (ViewGroup) mWebView.getParent(); if (parent != null) { @@ -420,6 +424,10 @@ public class RewardActivity extends AbsActivity { } else if (TextUtils.equals(event.getMethod(), "openUpdataAutograph")) { isUpdataUser = true; forwardSign(); + }else if (event.getMethod().equals("androidInviteShare")) { + new InvitePopDialog(mContext) + .setUrl(event.getData()) + .showDialog(); } } }