1、修复发布动态--》选择图片可能闪退bug

This commit is contained in:
老皮 2024-09-13 16:32:59 +08:00
parent 9a72e54ca3
commit c582376cc4

View File

@ -226,6 +226,9 @@ public class MainHomeCommunityViewHolder extends AbsMainHomeChildViewHolder impl
} }
public void setValueCallback2(Uri[] results) { public void setValueCallback2(Uri[] results) {
if (results == null){
return;
}
BaseFragment fragment = fragments.get(viewPager.getCurrentItem()); BaseFragment fragment = fragments.get(viewPager.getCurrentItem());
if (fragment instanceof MainHomeCommunityFragment) { if (fragment instanceof MainHomeCommunityFragment) {
if (((MainHomeCommunityFragment) fragment).mValueCallback2 == null) { if (((MainHomeCommunityFragment) fragment).mValueCallback2 == null) {