修复
This commit is contained in:
@@ -27,6 +27,7 @@ import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.view.animation.Animation;
|
||||
import android.view.animation.AnimationUtils;
|
||||
import android.widget.FrameLayout;
|
||||
import android.widget.ImageView;
|
||||
import android.widget.LinearLayout;
|
||||
import android.widget.TextView;
|
||||
@@ -203,7 +204,7 @@ public class LiveChatAdapter extends RecyclerView.Adapter {
|
||||
View v_chat_active_close;
|
||||
RecyclerView rv_chat_active;
|
||||
ImageView img_zg_img, btnAttention, textLeave;
|
||||
LinearLayout attentionLayout;
|
||||
FrameLayout attentionLayout;
|
||||
ClipPathCircleImage clipImage2;
|
||||
|
||||
public Vh(View itemView) {
|
||||
@@ -211,7 +212,7 @@ public class LiveChatAdapter extends RecyclerView.Adapter {
|
||||
mBg = (LinearLayout) itemView.findViewById(R.id.bg);
|
||||
mTextView = (TextView) itemView.findViewById(R.id.text_txt);
|
||||
textTxt2 = (TextView) itemView.findViewById(R.id.text_txt2);
|
||||
attentionLayout = (LinearLayout) itemView.findViewById(R.id.attention_layout);
|
||||
attentionLayout = (FrameLayout) itemView.findViewById(R.id.attention_layout);
|
||||
clipImage2 = (ClipPathCircleImage) itemView.findViewById(R.id.clip_image2);
|
||||
itemView.setOnClickListener(mOnClickListener);
|
||||
|
||||
|
||||
@@ -105,13 +105,18 @@ public class ResultRendPacketPopup extends CenterPopupView {
|
||||
new HttpCallback<List<RedPacketGiftModel>>() {
|
||||
@Override
|
||||
public void onSuccess(List<RedPacketGiftModel> data) {
|
||||
// if (data.size() > 0) {
|
||||
new XPopup.Builder(getContext())
|
||||
.asCustom(new LuckUserRedPacketPopup(getContext(), data))
|
||||
.show();
|
||||
// } else {
|
||||
// ToastUtil.show(R.string.no_data);
|
||||
// }
|
||||
if (data.size() > 0) {
|
||||
new XPopup.Builder(getContext())
|
||||
.asCustom(new LuckUserRedPacketPopup(getContext(), data))
|
||||
.show();
|
||||
} else {
|
||||
new XPopup.Builder(getContext())
|
||||
.asCustom(new ResultRendPacketPopup(getContext(),
|
||||
true,
|
||||
redPacketInfoModel,
|
||||
isSuperJackpot))
|
||||
.show();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -126,13 +131,18 @@ public class ResultRendPacketPopup extends CenterPopupView {
|
||||
new HttpCallback<List<RedPacketGiftModel>>() {
|
||||
@Override
|
||||
public void onSuccess(List<RedPacketGiftModel> data) {
|
||||
// if (data.size() > 0) {
|
||||
new XPopup.Builder(getContext())
|
||||
.asCustom(new LuckUserRedPacketPopup(getContext(), data))
|
||||
.show();
|
||||
// } else {
|
||||
// ToastUtil.show(R.string.no_data);
|
||||
// }
|
||||
if (data.size() > 0) {
|
||||
new XPopup.Builder(getContext())
|
||||
.asCustom(new LuckUserRedPacketPopup(getContext(), data))
|
||||
.show();
|
||||
} else {
|
||||
new XPopup.Builder(getContext())
|
||||
.asCustom(new ResultRendPacketPopup(getContext(),
|
||||
true,
|
||||
redPacketInfoModel,
|
||||
isSuperJackpot))
|
||||
.show();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user