diff options
author | Alex Ning <chineseperson5@gmail.com> | 2021-11-12 01:10:21 +0000 |
---|---|---|
committer | Alex Ning <chineseperson5@gmail.com> | 2021-11-12 01:10:21 +0000 |
commit | f8c15e03af5a28251ee1abc88b1be1b1bbf8ad82 (patch) | |
tree | ae381e53a8e6343ec78881015b7657010109b0cc /app/src/main/java/ml | |
parent | d6d6ed5407bf8479957290d1e7cf79279dd4c427 (diff) | |
download | infinity-for-reddit-f8c15e03af5a28251ee1abc88b1be1b1bbf8ad82.tar infinity-for-reddit-f8c15e03af5a28251ee1abc88b1be1b1bbf8ad82.tar.gz infinity-for-reddit-f8c15e03af5a28251ee1abc88b1be1b1bbf8ad82.tar.bz2 infinity-for-reddit-f8c15e03af5a28251ee1abc88b1be1b1bbf8ad82.tar.lz infinity-for-reddit-f8c15e03af5a28251ee1abc88b1be1b1bbf8ad82.tar.xz infinity-for-reddit-f8c15e03af5a28251ee1abc88b1be1b1bbf8ad82.tar.zst infinity-for-reddit-f8c15e03af5a28251ee1abc88b1be1b1bbf8ad82.zip |
Contact mods.
Diffstat (limited to 'app/src/main/java/ml')
-rw-r--r-- | app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewSubredditDetailActivity.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewSubredditDetailActivity.java b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewSubredditDetailActivity.java index 2f534fb0..8cf3dfc6 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewSubredditDetailActivity.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewSubredditDetailActivity.java @@ -1137,12 +1137,17 @@ public class ViewSubredditDetailActivity extends BaseActivity implements SortTyp Toast.makeText(this, R.string.no_app, Toast.LENGTH_SHORT).show(); } 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); wikiIntent.putExtra(WikiActivity.EXTRA_SUBREDDIT_NAME, subredditName); wikiIntent.putExtra(WikiActivity.EXTRA_WIKI_PATH, "index"); startActivity(wikiIntent); 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; } |