举报动态自己也不能举报自己

This commit is contained in:
ningwenqiang 2024-11-06 18:11:59 +08:00
parent 71e3be10d0
commit e192b2f6c7

View File

@ -208,7 +208,9 @@ public class CommunityDetailsActivity extends AbsActivity {
@Override @Override
public void onClick(View v) { public void onClick(View v) {
SparseArray<String> array = new SparseArray<>(); SparseArray<String> array = new SparseArray<>();
array.append(0, getResources().getString(R.string.report)); if (!activeBean.getUser_id().equals(CommonAppConfig.getInstance().getUid())){
array.append(0, getResources().getString(R.string.report));
}
array.append(1, getResources().getString(R.string.not_interested)); array.append(1, getResources().getString(R.string.not_interested));
DialogUitl.showStringArrayDialog(CommunityDetailsActivity.this, array, new DialogUitl.StringArrayDialogCallback() { DialogUitl.showStringArrayDialog(CommunityDetailsActivity.this, array, new DialogUitl.StringArrayDialogCallback() {
@Override @Override