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) {