[Modify]默认点赞和评论点击弹出提示
This commit is contained in:
@@ -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.statistic.protocol.StatisticsProtocol;
|
||||||
import com.yizhuan.xchat_android_core.utils.net.DontWarnObserver;
|
import com.yizhuan.xchat_android_core.utils.net.DontWarnObserver;
|
||||||
import com.yizhuan.xchat_android_core.utils.net.RxHelper;
|
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 com.yizhuan.xchat_android_library.utils.SingleToastUtil;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
@@ -119,6 +120,7 @@ public class UserInfoDynamicAdapter extends BaseQuickAdapter<WorldDynamicBean, B
|
|||||||
@Override
|
@Override
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
if (item.getDynamicId() == 0) {
|
if (item.getDynamicId() == 0) {
|
||||||
|
SingleToastUtil.showToast(ResUtil.getString(R.string.the_default_dynamic_cannot_be_liked));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
llLike.setEnabled(false);
|
llLike.setEnabled(false);
|
||||||
@@ -149,6 +151,7 @@ public class UserInfoDynamicAdapter extends BaseQuickAdapter<WorldDynamicBean, B
|
|||||||
//评论
|
//评论
|
||||||
helper.getView(R.id.ll_comment).setOnClickListener(v -> {
|
helper.getView(R.id.ll_comment).setOnClickListener(v -> {
|
||||||
if (item.getDynamicId() == 0) {
|
if (item.getDynamicId() == 0) {
|
||||||
|
SingleToastUtil.showToast(ResUtil.getString(R.string.the_default_dynamic_cannot_be_commented));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
StatisticManager.Instance().onEvent(StatisticsProtocol.EVENT_WORLD_COMMENT_MOMENTS,
|
StatisticManager.Instance().onEvent(StatisticsProtocol.EVENT_WORLD_COMMENT_MOMENTS,
|
||||||
|
@@ -5052,5 +5052,7 @@
|
|||||||
<string name="sound_has_not_been_saved">聲音還未保存,確認退出嗎?</string>
|
<string name="sound_has_not_been_saved">聲音還未保存,確認退出嗎?</string>
|
||||||
<string name="sound_has_not_been_recorded_yet">聲音還未錄製完成,確認退出嗎?</string>
|
<string name="sound_has_not_been_recorded_yet">聲音還未錄製完成,確認退出嗎?</string>
|
||||||
<string name="recording_sound_card">錄制聲音卡</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>
|
</resources>
|
Reference in New Issue
Block a user