fix:修复选择幸运礼物后被自动重置为选中第一个的问题

This commit is contained in:
Max
2023-12-15 15:14:09 +08:00
parent 0417e53b85
commit 23e05ccab1

View File

@@ -657,7 +657,7 @@ public class GiftDialog extends BottomSheetDialog implements View.OnClickListene
if (currentGiftInfo.isSendMsg()) {
etSendMessage.setVisibility(View.VISIBLE);
}
pagerList = beanTransformVm(context, currentGiftInfoList, isKnap, position == GiftIndicator.TYPE_WEEK ? 4 : 8, selectGiftInfo);
pagerList = beanTransformVm(context, currentGiftInfoList, isKnap, position == GiftIndicator.TYPE_WEEK ? 4 : 8, currentGiftInfo);
setGridViewData(pagerList);
if (isKnap) {
tvGiftValue.setVisibility(View.VISIBLE);
@@ -1409,7 +1409,7 @@ public class GiftDialog extends BottomSheetDialog implements View.OnClickListene
if (throwable == null) {
// 返回结果时,当前选中选项与请求时的选项一样时才显示
if (currentType == giftIndicator.getCurrrentType()) {
updateGiftView(giftIndicator.getCurrrentType());
updateGiftView(giftIndicator.getCurrrentType(), currentGiftInfo);
}
} else {
if (needShowLoading) showLoadFailedView();