mirror of
https://codeberg.org/Bazsalanszky/Infinity-For-Lemmy.git
synced 2024-12-29 04:17:12 +01:00
Contact mods.
This commit is contained in:
parent
d6d6ed5407
commit
f8c15e03af
@ -1137,12 +1137,17 @@ 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_activity ) {
|
} else if (itemId == R.id.action_go_to_wiki_view_subreddit_detail_activity) {
|
||||||
Intent wikiIntent = new Intent(this, WikiActivity.class);
|
Intent wikiIntent = new Intent(this, WikiActivity.class);
|
||||||
wikiIntent.putExtra(WikiActivity.EXTRA_SUBREDDIT_NAME, subredditName);
|
wikiIntent.putExtra(WikiActivity.EXTRA_SUBREDDIT_NAME, subredditName);
|
||||||
wikiIntent.putExtra(WikiActivity.EXTRA_WIKI_PATH, "index");
|
wikiIntent.putExtra(WikiActivity.EXTRA_WIKI_PATH, "index");
|
||||||
startActivity(wikiIntent);
|
startActivity(wikiIntent);
|
||||||
return true;
|
return true;
|
||||||
|
} else if (itemId == R.id.action_contact_mods_view_subreddit_detail_activity) {
|
||||||
|
Intent intent = new Intent(this, SendPrivateMessageActivity.class);
|
||||||
|
intent.putExtra(SendPrivateMessageActivity.EXTRA_RECIPIENT_USERNAME, "r/" + subredditName);
|
||||||
|
startActivity(intent);
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -54,8 +54,14 @@
|
|||||||
app:showAsAction="never" />
|
app:showAsAction="never" />
|
||||||
|
|
||||||
<item
|
<item
|
||||||
android:id="@+id/action_go_to_wiki_activity"
|
android:id="@+id/action_go_to_wiki_view_subreddit_detail_activity"
|
||||||
android:orderInCategory="9"
|
android:orderInCategory="9"
|
||||||
android:title="@string/action_go_to_wiki"
|
android:title="@string/action_go_to_wiki"
|
||||||
app:showAsAction="never" />
|
app:showAsAction="never" />
|
||||||
|
|
||||||
|
<item
|
||||||
|
android:id="@+id/action_contact_mods_view_subreddit_detail_activity"
|
||||||
|
android:orderInCategory="10"
|
||||||
|
android:title="@string/action_contact_mods"
|
||||||
|
app:showAsAction="never" />
|
||||||
</menu>
|
</menu>
|
||||||
|
@ -92,6 +92,7 @@
|
|||||||
<string name="action_share_post_link">Share Post Link</string>
|
<string name="action_share_post_link">Share Post Link</string>
|
||||||
<string name="action_go_to_wiki">Go to Wiki</string>
|
<string name="action_go_to_wiki">Go to Wiki</string>
|
||||||
<string name="action_playback_speed">Playback Speed</string>
|
<string name="action_playback_speed">Playback Speed</string>
|
||||||
|
<string name="action_contact_mods">Contact Mods</string>
|
||||||
|
|
||||||
<string name="parse_json_response_error">Error occurred when parsing the JSON response</string>
|
<string name="parse_json_response_error">Error occurred when parsing the JSON response</string>
|
||||||
<string name="retrieve_token_error">Error Retrieving the token</string>
|
<string name="retrieve_token_error">Error Retrieving the token</string>
|
||||||
|
Loading…
Reference in New Issue
Block a user