点唱无唱者闪退修改

This commit is contained in:
2025-12-04 18:48:43 +08:00
parent defb31a217
commit 56bb994377
2 changed files with 12 additions and 5 deletions

View File

@@ -18,6 +18,7 @@ import android.widget.TextView;
import androidx.recyclerview.widget.GridLayoutManager;
import com.blankj.utilcode.util.ActivityUtils;
import com.blankj.utilcode.util.LogUtils;
import com.xscm.modulemain.R;
import com.xscm.modulemain.activity.room.activity.RoomActivity;
import com.xscm.modulemain.activity.room.contacts.JukeboxContacts;
@@ -500,11 +501,17 @@ public class RoomJukeboxFragment extends BaseMvpFragment<JukeboxPresenter, Fragm
pitBean.setCharm(fromUserInfo.getCharm());
pitBean.setDress(fromUserInfo.getDress());
pitBean.setIs_online(fromUserInfo.getIs_online());
if (roomInfoResp.getSinger_info().getSong_info().getSinger_user_id() == userId) {
pitBean.setImageType(true);
} else {
try {
if (roomInfoResp.getSinger_info().getSong_info().getSinger_user_id() == userId) {
pitBean.setImageType(true);
} else {
pitBean.setImageType(false);
}
}catch (NullPointerException e){
LogUtils.e("juke",e.getMessage());
pitBean.setImageType(false);
}
// 使用set方法更新数据然后通知适配器
dataList.set(position, pitBean);
adapter.notifyItemChanged(position);

View File

@@ -28,8 +28,8 @@ isBuildModule=false
#org.gradle.deamon=false
android.injected.testOnly=false
APP_VERSION_NAME=1.0.6.9
APP_VERSION_CODE=59
APP_VERSION_NAME=1.0.7.1
APP_VERSION_CODE=61
org.gradle.jvm.toolchain.useLegacyAdapters=false
#org.gradle.java.home=C\:\\Users\\qx\\.jdks\\ms-17.0.15