调整联系方式选项

This commit is contained in:
zlzw 2023-04-03 14:48:35 +08:00
parent ba5a80fb1d
commit c43b581157
3 changed files with 11 additions and 1 deletions

View File

@ -110,14 +110,22 @@ public class LiveAnchorEditCallMeDialog extends AbsDialogPopupWindow {
} else if (bean.getType() == LiveAnchorEditCallMeAdapter.TYPE_APP_WHATSAPP) { } else if (bean.getType() == LiveAnchorEditCallMeAdapter.TYPE_APP_WHATSAPP) {
callMeModel.setWhatsApp(new LiveAnchorCallMeModel.AppBean(bean.getValue(), bean.getStatus())); callMeModel.setWhatsApp(new LiveAnchorCallMeModel.AppBean(bean.getValue(), bean.getStatus()));
} }
if (callMeModel.getWechat().getIsShow() == 0 && callMeModel.getLine().getIsShow() == 0 && callMeModel.getWhatsApp().getIsShow() == 0) {
status.setImageResource(R.mipmap.special_icon_off);
status.setTag(0);
}
} }
}); });
status.setTag(0); status.setTag(0);
status.setOnClickListener(v -> { status.setOnClickListener(v -> {
if(callMeModel.getGiftId()==0){ if (callMeModel.getGiftId() == 0) {
ToastUtil.show(R.string.live_anchor_edit_call_me_not_gift_toash); ToastUtil.show(R.string.live_anchor_edit_call_me_not_gift_toash);
return; return;
} }
if (callMeModel.getWechat().getIsShow() == 0 && callMeModel.getLine().getIsShow() == 0 && callMeModel.getWhatsApp().getIsShow() == 0) {
ToastUtil.show(R.string.live_anchor_edit_call_me_not_call_info_toash);
return;
}
int tag = (int) v.getTag(); int tag = (int) v.getTag();
if (tag == 0) { if (tag == 0) {
status.setImageResource(R.mipmap.special_icon_on); status.setImageResource(R.mipmap.special_icon_on);

View File

@ -89,4 +89,5 @@
<string name="live_user_letter_dialog_yes">Delete</string> <string name="live_user_letter_dialog_yes">Delete</string>
<string name="live_user_letter_dialog_no">Think again</string> <string name="live_user_letter_dialog_no">Think again</string>
<string name="dialog_live_mailbox_title">Letter</string> <string name="dialog_live_mailbox_title">Letter</string>
<string name="live_anchor_edit_call_me_not_call_info_toash">Please turn on at least one contact information</string>
</resources> </resources>

View File

@ -75,6 +75,7 @@
<string name="live_anchor_edit_call_me_not_filled">未填寫</string> <string name="live_anchor_edit_call_me_not_filled">未填寫</string>
<string name="live_anchor_edit_call_me_not_filled_toash">请填写联系方式后再启用</string> <string name="live_anchor_edit_call_me_not_filled_toash">请填写联系方式后再启用</string>
<string name="live_anchor_edit_call_me_not_gift_toash">未選擇禮物</string> <string name="live_anchor_edit_call_me_not_gift_toash">未選擇禮物</string>
<string name="live_anchor_edit_call_me_not_call_info_toash">請開啟至少一個聯繫方式</string>
<string name="live_anchor_edit_call_me_letter_title">信內容</string> <string name="live_anchor_edit_call_me_letter_title">信內容</string>
<string name="live_anchor_edit_call_me_letter_content">我能想到最浪漫的事,就是和你一起慢慢變老,一路上收藏點點滴滴的歡笑,留到以後坐著搖椅慢慢聊。</string> <string name="live_anchor_edit_call_me_letter_content">我能想到最浪漫的事,就是和你一起慢慢變老,一路上收藏點點滴滴的歡笑,留到以後坐著搖椅慢慢聊。</string>
<string name="live_ready_anchor_call_me">聯繫方式</string> <string name="live_ready_anchor_call_me">聯繫方式</string>