mirror of
https://codeberg.org/Bazsalanszky/Infinity-For-Lemmy.git
synced 2025-01-27 10:04:45 +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);
|
getMenuInflater().inflate(R.menu.view_user_detail_activity, menu);
|
||||||
if (username.equals(mAccountName)) {
|
if (username.equals(mAccountName)) {
|
||||||
menu.findItem(R.id.action_send_private_message_view_user_detail_activity).setVisible(false);
|
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);
|
menu.findItem(R.id.action_block_user_view_user_detail_activity).setVisible(false);
|
||||||
} else {
|
} else {
|
||||||
menu.findItem(R.id.action_edit_profile_view_user_detail_activity).setVisible(false);
|
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);
|
intent.putExtra(PostFilterPreferenceActivity.EXTRA_USER_NAME, username);
|
||||||
startActivity(intent);
|
startActivity(intent);
|
||||||
return true;
|
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) {
|
} else if (itemId == R.id.action_block_user_view_user_detail_activity) {
|
||||||
if (mAccessToken == null) {
|
if (mAccessToken == null) {
|
||||||
Toast.makeText(this, R.string.login_first, Toast.LENGTH_SHORT).show();
|
Toast.makeText(this, R.string.login_first, Toast.LENGTH_SHORT).show();
|
||||||
|
@ -44,10 +44,6 @@
|
|||||||
android:title="@string/action_add_to_post_filter"
|
android:title="@string/action_add_to_post_filter"
|
||||||
app:showAsAction="never" />
|
app:showAsAction="never" />
|
||||||
|
|
||||||
<item
|
|
||||||
android:id="@+id/action_report_view_user_detail_activity"
|
|
||||||
android:orderInCategory="9"
|
|
||||||
android:title="@string/action_report" />
|
|
||||||
|
|
||||||
<item
|
<item
|
||||||
android:id="@+id/action_block_user_view_user_detail_activity"
|
android:id="@+id/action_block_user_view_user_detail_activity"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user