[Modify]默认点赞和评论点击弹出提示

This commit is contained in:
wushaocheng
2023-01-13 18:34:36 +08:00
parent ecce0f35c0
commit 30e919ac5f
2 changed files with 5 additions and 0 deletions

View File

@@ -37,6 +37,7 @@ import com.yizhuan.xchat_android_core.statistic.StatisticManager;
import com.yizhuan.xchat_android_core.statistic.protocol.StatisticsProtocol;
import com.yizhuan.xchat_android_core.utils.net.DontWarnObserver;
import com.yizhuan.xchat_android_core.utils.net.RxHelper;
import com.yizhuan.xchat_android_library.utils.ResUtil;
import com.yizhuan.xchat_android_library.utils.SingleToastUtil;
import java.util.List;
@@ -119,6 +120,7 @@ public class UserInfoDynamicAdapter extends BaseQuickAdapter<WorldDynamicBean, B
@Override
public void onClick(View v) {
if (item.getDynamicId() == 0) {
SingleToastUtil.showToast(ResUtil.getString(R.string.the_default_dynamic_cannot_be_liked));
return;
}
llLike.setEnabled(false);
@@ -149,6 +151,7 @@ public class UserInfoDynamicAdapter extends BaseQuickAdapter<WorldDynamicBean, B
//评论
helper.getView(R.id.ll_comment).setOnClickListener(v -> {
if (item.getDynamicId() == 0) {
SingleToastUtil.showToast(ResUtil.getString(R.string.the_default_dynamic_cannot_be_commented));
return;
}
StatisticManager.Instance().onEvent(StatisticsProtocol.EVENT_WORLD_COMMENT_MOMENTS,

View File

@@ -5052,5 +5052,7 @@
<string name="sound_has_not_been_saved">聲音還未保存,確認退出嗎?</string>
<string name="sound_has_not_been_recorded_yet">聲音還未錄製完成,確認退出嗎?</string>
<string name="recording_sound_card">錄制聲音卡</string>
<string name="the_default_dynamic_cannot_be_liked">默認動態不能點贊</string>
<string name="the_default_dynamic_cannot_be_commented">默認動態不能評論</string>
</resources>