mirror of
https://codeberg.org/Bazsalanszky/Infinity-For-Lemmy.git
synced 2025-01-26 09:44:43 +01:00
Remove report option from User pages
This was a reddit feature that is unavailable on Lemmy. Closes #211
This commit is contained in:
parent
d0849e9f27
commit
3dc94a05c7
@ -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();
|
||||
|
@ -44,10 +44,6 @@
|
||||
android:title="@string/action_add_to_post_filter"
|
||||
app:showAsAction="never" />
|
||||
|
||||
<item
|
||||
android:id="@+id/action_report_view_user_detail_activity"
|
||||
android:orderInCategory="9"
|
||||
android:title="@string/action_report" />
|
||||
|
||||
<item
|
||||
android:id="@+id/action_block_user_view_user_detail_activity"
|
||||
|
Loading…
x
Reference in New Issue
Block a user