修复一处闪退问题

This commit is contained in:
zlzw 2022-10-22 09:48:18 +08:00
parent e0a398a9fd
commit f51237f04a
3 changed files with 27 additions and 3 deletions

View File

@ -173,4 +173,26 @@ public class LiveGiftBean {
public void setGiftNum(String giftNum) { public void setGiftNum(String giftNum) {
this.mGiftNum = giftNum; this.mGiftNum = giftNum;
} }
@Override
public String toString() {
return "LiveGiftBean{" +
"id=" + id +
", type=" + type +
", mark=" + mark +
", name='" + name + '\'' +
", price='" + price + '\'' +
", icon='" + icon + '\'' +
", checked=" + checked +
", page=" + page +
", mView=" + mView +
", sendType='" + sendType + '\'' +
", mGiftNum='" + mGiftNum + '\'' +
", num='" + num + '\'' +
", swf='" + swf + '\'' +
", isweek='" + isweek + '\'' +
", end_time='" + end_time + '\'' +
", tag='" + tag + '\'' +
'}';
}
} }

View File

@ -10,9 +10,9 @@ ext {
manifestPlaceholders = [ manifestPlaceholders = [
// //
serverHost : "https://napi.yaoulive.com", // serverHost : "https://napi.yaoulive.com",
// //
// serverHost : "https://ceshi.yaoulive.com", serverHost : "https://ceshi.yaoulive.com",
// //
txMapAppKey : "EOZBZ-ASLCU-4XPV3-BDCHZ-4E3Q7-H4BWB", txMapAppKey : "EOZBZ-ASLCU-4XPV3-BDCHZ-4E3Q7-H4BWB",

View File

@ -7,6 +7,7 @@ import androidx.recyclerview.widget.RecyclerView;
import android.graphics.Color; import android.graphics.Color;
import android.text.TextUtils; import android.text.TextUtils;
import android.util.Log;
import android.view.LayoutInflater; import android.view.LayoutInflater;
import android.view.View; import android.view.View;
import android.view.ViewGroup; import android.view.ViewGroup;
@ -19,6 +20,7 @@ import android.widget.ImageView;
import android.widget.LinearLayout; import android.widget.LinearLayout;
import android.widget.TextView; import android.widget.TextView;
import com.alibaba.fastjson.JSONObject;
import com.yunbao.common.CommonAppConfig; import com.yunbao.common.CommonAppConfig;
import com.yunbao.common.Constants; import com.yunbao.common.Constants;
import com.yunbao.common.bean.LiveGiftBean; import com.yunbao.common.bean.LiveGiftBean;
@ -288,7 +290,7 @@ public class LiveGiftAdapter extends RecyclerView.Adapter<LiveGiftAdapter.Vh> {
} }
mRadioButton.setTag(position); mRadioButton.setTag(position);
mRadioButton.doChecked(bean.isChecked()); mRadioButton.doChecked(bean.isChecked());
if (bean.getSwf().isEmpty()) { if (bean.getSwf()!=null&&bean.getSwf().isEmpty()) {
mLoadingLayout.setVisibility(View.GONE); mLoadingLayout.setVisibility(View.GONE);
return; return;
} }