diff --git a/common/src/main/res/values-en-rUS/strings.xml b/common/src/main/res/values-en-rUS/strings.xml index d473f7815..e7c059f1d 100644 --- a/common/src/main/res/values-en-rUS/strings.xml +++ b/common/src/main/res/values-en-rUS/strings.xml @@ -29,4 +29,5 @@ close Time cannot be greater than the current time Do you confirm deletion? + Cannot blackmail oneself \ No newline at end of file diff --git a/common/src/main/res/values-zh-rHK/strings.xml b/common/src/main/res/values-zh-rHK/strings.xml index 9c66b8c6b..e2ad7e6f5 100644 --- a/common/src/main/res/values-zh-rHK/strings.xml +++ b/common/src/main/res/values-zh-rHK/strings.xml @@ -1494,4 +1494,5 @@ 收起 时间不能大于当前时间 是否確認刪除? + 不能拉黑自己 diff --git a/common/src/main/res/values-zh-rTW/strings.xml b/common/src/main/res/values-zh-rTW/strings.xml index f3c973a42..dfdb542d3 100644 --- a/common/src/main/res/values-zh-rTW/strings.xml +++ b/common/src/main/res/values-zh-rTW/strings.xml @@ -1494,4 +1494,5 @@ 收起 时间不能大于当前时间 是否確認刪除? + 不能拉黑自己 diff --git a/common/src/main/res/values-zh/strings.xml b/common/src/main/res/values-zh/strings.xml index c65241125..02643bf8f 100644 --- a/common/src/main/res/values-zh/strings.xml +++ b/common/src/main/res/values-zh/strings.xml @@ -1492,4 +1492,5 @@ 收起 时间不能大于当前时间 是否確認刪除? + 不能拉黑自己 diff --git a/common/src/main/res/values/strings.xml b/common/src/main/res/values/strings.xml index 75ba5ab5a..2ad802e0c 100644 --- a/common/src/main/res/values/strings.xml +++ b/common/src/main/res/values/strings.xml @@ -1514,6 +1514,7 @@ Limited ride And limited avatar frame 收起 时间不能大于当前时间 是否確認刪除? + 不能拉黑自己 diff --git a/main/src/main/java/com/yunbao/main/activity/CommunityDetailsActivity.java b/main/src/main/java/com/yunbao/main/activity/CommunityDetailsActivity.java index 2060dedcb..d1c11edb8 100644 --- a/main/src/main/java/com/yunbao/main/activity/CommunityDetailsActivity.java +++ b/main/src/main/java/com/yunbao/main/activity/CommunityDetailsActivity.java @@ -198,15 +198,19 @@ public class CommunityDetailsActivity extends AbsActivity { DialogUitl.showStringArrayDialog(CommunityDetailsActivity.this, array, new DialogUitl.StringArrayDialogCallback() { @Override public void onItemClick(String text, int tag) { - if (tag == 0) { - RouteUtil.forwardCommentReportActivity(activeBean.getId(), "0"); + if (activeBean.getUser_id().equals(CommonAppConfig.getInstance().getUid())) { + ToastUtil.show(getResources().getString(com.yunbao.main.R.string.not_blackmail)); } else { - CommonHttpUtil.noInterest(activeBean.getUser_id(), new HttpCallback() { - @Override - public void onSuccess(int code, String msg, String[] info) { - ToastUtil.show(msg); - } - }); + if (tag == 0) { + RouteUtil.forwardCommentReportActivity(activeBean.getId(), "0"); + } else { + CommonHttpUtil.noInterest(activeBean.getUser_id(), new HttpCallback() { + @Override + public void onSuccess(int code, String msg, String[] info) { + ToastUtil.show(msg); + } + }); + } } } });