修复问题
This commit is contained in:
parent
cbe91c84e9
commit
291492f2d0
@ -29,6 +29,7 @@ import com.yunbao.common.views.weight.ClipPathCircleImage;
|
|||||||
import com.yunbao.common.views.weight.ViewClicksAntiShake;
|
import com.yunbao.common.views.weight.ViewClicksAntiShake;
|
||||||
import com.yunbao.live.R;
|
import com.yunbao.live.R;
|
||||||
import com.yunbao.live.adapter.RedPacketGiftAdapter;
|
import com.yunbao.live.adapter.RedPacketGiftAdapter;
|
||||||
|
import com.yunbao.live.views.LiveRoomViewHolder;
|
||||||
|
|
||||||
public class ReceiveRendPacketPopup extends CenterPopupView {
|
public class ReceiveRendPacketPopup extends CenterPopupView {
|
||||||
private CircleProgress circleProgress;
|
private CircleProgress circleProgress;
|
||||||
@ -174,17 +175,29 @@ public class ReceiveRendPacketPopup extends CenterPopupView {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
LiveRoomViewHolder.follow();
|
||||||
LiveNetManager.get(getContext())
|
LiveNetManager.get(getContext())
|
||||||
.getRedPacket(mLiveUid, stream, redPacketId, new HttpCallback<RedPacketInfoModel>() {
|
.getRedPacket(mLiveUid, stream, redPacketId, new HttpCallback<RedPacketInfoModel>() {
|
||||||
@Override
|
@Override
|
||||||
public void onSuccess(RedPacketInfoModel data) {
|
public void onSuccess(RedPacketInfoModel data) {
|
||||||
|
|
||||||
dismiss();
|
dismiss();
|
||||||
new XPopup.Builder(getContext())
|
if (data.getGiftModels().size() > 0) {
|
||||||
.asCustom(new ResultRendPacketPopup(getContext(),
|
new XPopup.Builder(getContext())
|
||||||
false,
|
.asCustom(new ResultRendPacketPopup(getContext(),
|
||||||
data.setRedPacketId(redPacketId),
|
false,
|
||||||
isSuperJackpot))
|
data.setRedPacketId(redPacketId),
|
||||||
.show();
|
isSuperJackpot))
|
||||||
|
.show();
|
||||||
|
} else {
|
||||||
|
new XPopup.Builder(getContext())
|
||||||
|
.asCustom(new ResultRendPacketPopup(getContext(),
|
||||||
|
true,
|
||||||
|
null,
|
||||||
|
isSuperJackpot))
|
||||||
|
.show();
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -1483,9 +1483,6 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
|||||||
.asCustom(new ResultRendPacketPopup(mContext, false, data.setRedPacketId(redPacketModel.getRedPacketId()), false))
|
.asCustom(new ResultRendPacketPopup(mContext, false, data.setRedPacketId(redPacketModel.getRedPacketId()), false))
|
||||||
.show();
|
.show();
|
||||||
}
|
}
|
||||||
if (TextUtils.equals(data.getConditions(), "1")) {
|
|
||||||
follow();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -16,14 +16,15 @@
|
|||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/red_packet_countdown"
|
android:id="@+id/red_packet_countdown"
|
||||||
android:layout_width="58dp"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="16dp"
|
android:layout_height="16dp"
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:paddingStart="5dp"
|
android:paddingStart="5dp"
|
||||||
|
android:paddingEnd="5dp"
|
||||||
android:text="@string/red_packet_countdown"
|
android:text="@string/red_packet_countdown"
|
||||||
android:visibility="gone"
|
|
||||||
android:textColor="@color/white"
|
android:textColor="@color/white"
|
||||||
android:textSize="9sp" />
|
android:textSize="9sp"
|
||||||
|
android:visibility="gone" />
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:id="@+id/red_packet_queue"
|
android:id="@+id/red_packet_queue"
|
||||||
|
Loading…
Reference in New Issue
Block a user