From 3dc94a05c70e78b02922cf405ffbebb3ef20b4ad Mon Sep 17 00:00:00 2001 From: Balazs Toldi Date: Thu, 4 Jan 2024 15:02:27 +0100 Subject: [PATCH] Remove report option from User pages This was a reddit feature that is unavailable on Lemmy. Closes #211 --- .../infinityforlemmy/activities/ViewUserDetailActivity.java | 6 ------ app/src/main/res/menu/view_user_detail_activity.xml | 4 ---- 2 files changed, 10 deletions(-) diff --git a/app/src/main/java/eu/toldi/infinityforlemmy/activities/ViewUserDetailActivity.java b/app/src/main/java/eu/toldi/infinityforlemmy/activities/ViewUserDetailActivity.java index 4c77f4f6..3fb1409d 100644 --- a/app/src/main/java/eu/toldi/infinityforlemmy/activities/ViewUserDetailActivity.java +++ b/app/src/main/java/eu/toldi/infinityforlemmy/activities/ViewUserDetailActivity.java @@ -1233,7 +1233,6 @@ public class ViewUserDetailActivity extends BaseActivity implements SortTypeSele getMenuInflater().inflate(R.menu.view_user_detail_activity, menu); if (username.equals(mAccountName)) { menu.findItem(R.id.action_send_private_message_view_user_detail_activity).setVisible(false); - menu.findItem(R.id.action_report_view_user_detail_activity).setVisible(false); menu.findItem(R.id.action_block_user_view_user_detail_activity).setVisible(false); } else { menu.findItem(R.id.action_edit_profile_view_user_detail_activity).setVisible(false); @@ -1299,11 +1298,6 @@ public class ViewUserDetailActivity extends BaseActivity implements SortTypeSele intent.putExtra(PostFilterPreferenceActivity.EXTRA_USER_NAME, username); startActivity(intent); return true; - } else if (itemId == R.id.action_report_view_user_detail_activity) { - Intent reportIntent = new Intent(this, LinkResolverActivity.class); - reportIntent.setData(Uri.parse("https://www.reddithelp.com/en/categories/rules-reporting/account-and-community-restrictions/what-should-i-do-if-i-see-something-i")); - startActivity(reportIntent); - return true; } else if (itemId == R.id.action_block_user_view_user_detail_activity) { if (mAccessToken == null) { Toast.makeText(this, R.string.login_first, Toast.LENGTH_SHORT).show(); diff --git a/app/src/main/res/menu/view_user_detail_activity.xml b/app/src/main/res/menu/view_user_detail_activity.xml index e61e1aee..f742587b 100644 --- a/app/src/main/res/menu/view_user_detail_activity.xml +++ b/app/src/main/res/menu/view_user_detail_activity.xml @@ -44,10 +44,6 @@ android:title="@string/action_add_to_post_filter" app:showAsAction="never" /> -