From e90f37cd89f2e4d99a538ab2439f72ebc70fa383 Mon Sep 17 00:00:00 2001 From: zlzw <583819556@qq.com> Date: Mon, 29 Aug 2022 17:05:52 +0800 Subject: [PATCH] =?UTF-8?q?update:=E5=AE=88=E6=8A=A4=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E6=94=B9=E7=89=88=20-=E8=A1=A5=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../live/dialog/LiveNewGuardBuyDialogFragment.java | 8 +++++--- .../live/dialog/LiveNewGuardListDialogFragment.java | 10 +++------- 2 files changed, 8 insertions(+), 10 deletions(-) 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;