mirror of
https://codeberg.org/Bazsalanszky/Infinity-For-Lemmy.git
synced 2024-11-14 06:22:50 +01:00
Remove "Add to multicommunity" option from user/community pages
This commit is contained in:
parent
45ae8342ee
commit
016801419f
@ -1160,13 +1160,6 @@ public class ViewSubredditDetailActivity extends BaseActivity implements SortTyp
|
|||||||
selectUserFlairIntent.putExtra(SelectUserFlairActivity.EXTRA_SUBREDDIT_NAME, communityName);
|
selectUserFlairIntent.putExtra(SelectUserFlairActivity.EXTRA_SUBREDDIT_NAME, communityName);
|
||||||
startActivity(selectUserFlairIntent);
|
startActivity(selectUserFlairIntent);
|
||||||
return true;
|
return true;
|
||||||
} else if (itemId == R.id.action_add_to_multireddit_view_subreddit_detail_activity) {
|
|
||||||
if (mAccessToken == null) {
|
|
||||||
Toast.makeText(this, R.string.login_first, Toast.LENGTH_SHORT).show();
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
Intent intent = new Intent(this, MultiredditSelectionActivity.class);
|
|
||||||
startActivityForResult(intent, ADD_TO_MULTIREDDIT_REQUEST_CODE);
|
|
||||||
} else if (itemId == R.id.action_add_to_post_filter_view_subreddit_detail_activity) {
|
} else if (itemId == R.id.action_add_to_post_filter_view_subreddit_detail_activity) {
|
||||||
Intent intent = new Intent(this, PostFilterPreferenceActivity.class);
|
Intent intent = new Intent(this, PostFilterPreferenceActivity.class);
|
||||||
intent.putExtra(PostFilterPreferenceActivity.EXTRA_SUBREDDIT_NAME, communityName);
|
intent.putExtra(PostFilterPreferenceActivity.EXTRA_SUBREDDIT_NAME, communityName);
|
||||||
@ -1183,12 +1176,6 @@ public class ViewSubredditDetailActivity extends BaseActivity implements SortTyp
|
|||||||
Toast.makeText(this, R.string.no_app, Toast.LENGTH_SHORT).show();
|
Toast.makeText(this, R.string.no_app, Toast.LENGTH_SHORT).show();
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
} else if (itemId == R.id.action_go_to_wiki_view_subreddit_detail_activity) {
|
|
||||||
Intent wikiIntent = new Intent(this, WikiActivity.class);
|
|
||||||
wikiIntent.putExtra(WikiActivity.EXTRA_SUBREDDIT_NAME, communityName);
|
|
||||||
wikiIntent.putExtra(WikiActivity.EXTRA_WIKI_PATH, "index");
|
|
||||||
startActivity(wikiIntent);
|
|
||||||
return true;
|
|
||||||
} else if (itemId == R.id.action_contact_mods_view_subreddit_detail_activity) {
|
} else if (itemId == R.id.action_contact_mods_view_subreddit_detail_activity) {
|
||||||
Intent intent = new Intent(this, SendPrivateMessageActivity.class);
|
Intent intent = new Intent(this, SendPrivateMessageActivity.class);
|
||||||
intent.putExtra(SendPrivateMessageActivity.EXTRA_RECIPIENT_USERNAME, "r/" + communityName);
|
intent.putExtra(SendPrivateMessageActivity.EXTRA_RECIPIENT_USERNAME, "r/" + communityName);
|
||||||
|
@ -1182,13 +1182,6 @@ public class ViewUserDetailActivity extends BaseActivity implements SortTypeSele
|
|||||||
pmIntent.putExtra(SendPrivateMessageActivity.EXTRA_RECIPIENT_USERNAME, username);
|
pmIntent.putExtra(SendPrivateMessageActivity.EXTRA_RECIPIENT_USERNAME, username);
|
||||||
startActivity(pmIntent);
|
startActivity(pmIntent);
|
||||||
return true;
|
return true;
|
||||||
} else if (itemId == R.id.action_add_to_multireddit_view_user_detail_activity) {
|
|
||||||
if (mAccessToken == null) {
|
|
||||||
Toast.makeText(this, R.string.login_first, Toast.LENGTH_SHORT).show();
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
Intent intent = new Intent(this, MultiredditSelectionActivity.class);
|
|
||||||
startActivityForResult(intent, ADD_TO_MULTIREDDIT_REQUEST_CODE);
|
|
||||||
} else if (itemId == R.id.action_add_to_post_filter_view_user_detail_activity) {
|
} else if (itemId == R.id.action_add_to_post_filter_view_user_detail_activity) {
|
||||||
Intent intent = new Intent(this, PostFilterPreferenceActivity.class);
|
Intent intent = new Intent(this, PostFilterPreferenceActivity.class);
|
||||||
intent.putExtra(PostFilterPreferenceActivity.EXTRA_USER_NAME, username);
|
intent.putExtra(PostFilterPreferenceActivity.EXTRA_USER_NAME, username);
|
||||||
|
@ -35,11 +35,6 @@
|
|||||||
android:title="@string/action_select_user_flair"
|
android:title="@string/action_select_user_flair"
|
||||||
app:showAsAction="never" />
|
app:showAsAction="never" />
|
||||||
|
|
||||||
<item
|
|
||||||
android:id="@+id/action_add_to_multireddit_view_subreddit_detail_activity"
|
|
||||||
android:orderInCategory="6"
|
|
||||||
android:title="@string/action_add_to_multireddit"
|
|
||||||
app:showAsAction="never" />
|
|
||||||
|
|
||||||
<item
|
<item
|
||||||
android:id="@+id/action_add_to_post_filter_view_subreddit_detail_activity"
|
android:id="@+id/action_add_to_post_filter_view_subreddit_detail_activity"
|
||||||
@ -53,11 +48,6 @@
|
|||||||
android:title="@string/action_share"
|
android:title="@string/action_share"
|
||||||
app:showAsAction="never" />
|
app:showAsAction="never" />
|
||||||
|
|
||||||
<item
|
|
||||||
android:id="@+id/action_go_to_wiki_view_subreddit_detail_activity"
|
|
||||||
android:orderInCategory="9"
|
|
||||||
android:title="@string/action_go_to_wiki"
|
|
||||||
app:showAsAction="never" />
|
|
||||||
|
|
||||||
<item
|
<item
|
||||||
android:id="@+id/action_contact_mods_view_subreddit_detail_activity"
|
android:id="@+id/action_contact_mods_view_subreddit_detail_activity"
|
||||||
|
@ -38,12 +38,6 @@
|
|||||||
android:title="@string/action_share"
|
android:title="@string/action_share"
|
||||||
app:showAsAction="never" />
|
app:showAsAction="never" />
|
||||||
|
|
||||||
<item
|
|
||||||
android:id="@+id/action_add_to_multireddit_view_user_detail_activity"
|
|
||||||
android:orderInCategory="7"
|
|
||||||
android:title="@string/action_add_to_multireddit"
|
|
||||||
app:showAsAction="never" />
|
|
||||||
|
|
||||||
<item
|
<item
|
||||||
android:id="@+id/action_add_to_post_filter_view_user_detail_activity"
|
android:id="@+id/action_add_to_post_filter_view_user_detail_activity"
|
||||||
android:orderInCategory="8"
|
android:orderInCategory="8"
|
||||||
|
Loading…
Reference in New Issue
Block a user