aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java/ml/docilealligator/infinityforreddit
diff options
context:
space:
mode:
authorandrewrasch <raschykid@gmail.com>2021-09-22 04:04:21 +0000
committerandrewrasch <raschykid@gmail.com>2021-09-22 04:04:21 +0000
commit0ca6bc25af02b52ce7b89b1c895a3d00e307d821 (patch)
treea87e627b46ddaff916d01fb4ef789605e85b531c /app/src/main/java/ml/docilealligator/infinityforreddit
parent2d5829830e062d5cef8ca3ffa55e7dab607b84a7 (diff)
downloadinfinity-for-reddit-0ca6bc25af02b52ce7b89b1c895a3d00e307d821.tar
infinity-for-reddit-0ca6bc25af02b52ce7b89b1c895a3d00e307d821.tar.gz
infinity-for-reddit-0ca6bc25af02b52ce7b89b1c895a3d00e307d821.tar.bz2
infinity-for-reddit-0ca6bc25af02b52ce7b89b1c895a3d00e307d821.tar.lz
infinity-for-reddit-0ca6bc25af02b52ce7b89b1c895a3d00e307d821.tar.xz
infinity-for-reddit-0ca6bc25af02b52ce7b89b1c895a3d00e307d821.tar.zst
infinity-for-reddit-0ca6bc25af02b52ce7b89b1c895a3d00e307d821.zip
Added link to wiki in subreddit
Subreddit details menu now has a link to its wiki. Subs without a wiki will show the "this subreddit has no wiki" page.
Diffstat (limited to 'app/src/main/java/ml/docilealligator/infinityforreddit')
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewSubredditDetailActivity.java6
1 files changed, 6 insertions, 0 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 4096a96b..11d19e16 100644
--- a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewSubredditDetailActivity.java
+++ b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewSubredditDetailActivity.java
@@ -1180,6 +1180,12 @@ 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 ) {
+ 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;
}
return false;
}