From 46e37b14e479e5f1fdc5602d3de44bcde531b6ac Mon Sep 17 00:00:00 2001 From: zlzw <583819556@qq.com> Date: Sat, 13 May 2023 15:35:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BB=8E=E3=80=90=E6=88=91?= =?UTF-8?q?=E7=9A=84=E3=80=91-=E3=80=90=E7=8D=8E=E5=8B=B5=E4=B8=AD?= =?UTF-8?q?=E5=BF=83=E3=80=91=E9=80=B2=E5=8E=BB=E6=97=A0=E6=B3=95=E5=94=A4?= =?UTF-8?q?=E8=B5=B7=E9=82=80=E8=AF=B7=E5=AF=B9=E8=AF=9D=E6=A1=86=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/yunbao/main/activity/RewardActivity.java | 8 ++++++++ 1 file changed, 8 insertions(+) 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(); } } }