From df0d9795edaba5591704940c2ae55738e5849cd2 Mon Sep 17 00:00:00 2001 From: zlzw <583819556@qq.com> Date: Tue, 9 Jan 2024 16:42:09 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E5=AE=A2=E6=9C=8D=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E8=BF=94=E5=9B=9E=E9=94=AE=E4=BA=A4=E7=BB=99h5?= =?UTF-8?q?=E5=A4=84=E7=90=86=EF=BC=88=E5=90=AB=E7=B3=BB=E7=BB=9F=E6=8C=89?= =?UTF-8?q?=E9=94=AE/=E6=89=8B=E5=8A=BF=EF=BC=89=20=E7=BB=9F=E4=B8=80?= =?UTF-8?q?=E5=AE=A2=E6=9C=8D=E9=A1=B5=E9=9D=A2=E4=B8=BA=E5=90=8C=E4=B8=80?= =?UTF-8?q?=E4=B8=AAWebView=20=E8=B0=83=E6=95=B4=E7=9F=AD=E5=89=A7?= =?UTF-8?q?=E4=B8=8E=E7=A4=BE=E5=8C=BA=E4=BD=BF=E7=94=A8=E5=8E=9F=E7=94=9F?= =?UTF-8?q?=E5=88=86=E5=BC=80=E5=8A=A0=E8=BD=BD=20=E8=B0=83=E6=95=B4?= =?UTF-8?q?=E9=80=81=E7=A4=BC-=E5=8C=85=E8=A3=B9=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E4=B8=BA=E6=96=B0=E6=8E=A5=E5=8F=A3=20=E8=B0=83=E6=95=B4?= =?UTF-8?q?=E7=B2=89=E4=B8=9D=E5=9B=A2=E7=A4=BC=E7=89=A9=E9=80=81=E7=A4=BC?= =?UTF-8?q?=E4=B8=BA=E6=96=B0=E6=8E=A5=E5=8F=A3=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E6=88=98=E4=BB=A4-=E5=85=91=E6=8D=A2-=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E5=9C=A8=E5=90=8D=E5=AD=97=E8=BF=87=E9=95=BF?= =?UTF-8?q?=E6=99=B4=E7=A9=BA=E4=B8=8B=E9=AB=98=E5=BA=A6=E4=B8=8D=E7=BB=9F?= =?UTF-8?q?=E4=B8=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/yunbao/main/activity/MainActivity.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/main/src/main/java/com/yunbao/main/activity/MainActivity.java b/main/src/main/java/com/yunbao/main/activity/MainActivity.java index 2f1f5ce7d..5380d1a38 100644 --- a/main/src/main/java/com/yunbao/main/activity/MainActivity.java +++ b/main/src/main/java/com/yunbao/main/activity/MainActivity.java @@ -1162,9 +1162,6 @@ public class MainActivity extends AbsActivity implements MainAppBarLayoutListene @RequiresApi(api = Build.VERSION_CODES.LOLLIPOP) private void processResultAndroid5(int resultCode, Intent intent) { - if (null == mMainHomeCommunityViewHolder.mValueCallback2) { - return; - } if (resultCode == RESULT_OK && intent != null) { String dataString = intent.getDataString(); ClipData clipData = intent.getClipData(); @@ -1179,11 +1176,10 @@ public class MainActivity extends AbsActivity implements MainAppBarLayoutListene if (dataString != null) { results = new Uri[]{Uri.parse(dataString)}; } - mMainHomeCommunityViewHolder.mValueCallback2.onReceiveValue(results); + mMainHomeCommunityViewHolder.setValueCallback2(results); } else { - mMainHomeCommunityViewHolder.mValueCallback2.onReceiveValue(null); + mMainHomeCommunityViewHolder.setValueCallback2(null); } - mMainHomeCommunityViewHolder.mValueCallback2 = null; } public void isClose(String isClose) {