diff --git a/live/src/main/java/com/yunbao/live/dialog/LiveNewGuardBuyDialogFragment.java b/live/src/main/java/com/yunbao/live/dialog/LiveNewGuardBuyDialogFragment.java index 2c2dee4d2..39161f02e 100644 --- a/live/src/main/java/com/yunbao/live/dialog/LiveNewGuardBuyDialogFragment.java +++ b/live/src/main/java/com/yunbao/live/dialog/LiveNewGuardBuyDialogFragment.java @@ -9,7 +9,6 @@ import android.view.View; import android.view.Window; import android.view.WindowManager; import android.widget.Button; -import android.widget.ImageView; import android.widget.LinearLayout; import android.widget.RelativeLayout; import android.widget.TextView; @@ -193,10 +192,13 @@ public class LiveNewGuardBuyDialogFragment extends AbsDialogFragment implements } } }); - setIcon(); + initView(); } - private void setIcon() { + /** + * 根据守护类型初始化不同的底部布局 + */ + private void initView() { int guardType = mLiveGuardInfo.getMyGuardType(); if (guardType == Constants.GUARD_TYPE_NONE) { iconCover.setBackgroundResource(R.drawable.guardian_img_wings); diff --git a/live/src/main/java/com/yunbao/live/dialog/LiveNewGuardListDialogFragment.java b/live/src/main/java/com/yunbao/live/dialog/LiveNewGuardListDialogFragment.java index 147f32be2..e8dc83c1b 100644 --- a/live/src/main/java/com/yunbao/live/dialog/LiveNewGuardListDialogFragment.java +++ b/live/src/main/java/com/yunbao/live/dialog/LiveNewGuardListDialogFragment.java @@ -1,11 +1,8 @@ package com.yunbao.live.dialog; -import android.graphics.Color; import android.os.Bundle; -import android.text.Html; import android.view.Gravity; import android.view.View; -import android.view.ViewGroup; import android.view.Window; import android.view.WindowManager; import android.widget.ImageView; @@ -19,20 +16,16 @@ import androidx.fragment.app.FragmentTransaction; import androidx.recyclerview.widget.LinearLayoutManager; import com.alibaba.fastjson.JSON; -import com.alibaba.fastjson.JSONArray; import com.opensource.svgaplayer.SVGAImageView; import com.yunbao.common.CommonAppConfig; import com.yunbao.common.Constants; import com.yunbao.common.adapter.RefreshAdapter; -import com.yunbao.common.bean.IMLoginModel; import com.yunbao.common.bean.LevelBean; import com.yunbao.common.custom.CommonRefreshView; import com.yunbao.common.dialog.AbsDialogFragment; import com.yunbao.common.glide.ImgLoader; import com.yunbao.common.http.HttpCallback; -import com.yunbao.common.manager.IMLoginManager; import com.yunbao.common.utils.CommonIconUtil; -import com.yunbao.common.utils.DpUtil; import com.yunbao.common.utils.WordUtil; import com.yunbao.live.R; import com.yunbao.live.activity.LiveActivity; @@ -44,6 +37,9 @@ import com.yunbao.live.http.LiveHttpUtil; import java.util.Arrays; import java.util.List; +/** + * 新版守护列表 + */ public class LiveNewGuardListDialogFragment extends AbsDialogFragment implements View.OnClickListener { private ImageView guardIcon, userSex, userLevel; private ConstraintLayout mRootLayout;