aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorPatrick Demers <patrickdemers6@gmail.com>2022-11-02 12:17:21 +0000
committerGitHub <noreply@github.com>2022-11-02 12:17:21 +0000
commit2863fa90be9eefd22f66ce0dc304e488fc5a282c (patch)
tree817bb736505bc77b5e99723bfd2c1b3243bb2fb4 /app
parentf85959cd89ea98d583a7be01c73a6313bd292113 (diff)
downloadinfinity-for-reddit-2863fa90be9eefd22f66ce0dc304e488fc5a282c.tar
infinity-for-reddit-2863fa90be9eefd22f66ce0dc304e488fc5a282c.tar.gz
infinity-for-reddit-2863fa90be9eefd22f66ce0dc304e488fc5a282c.tar.bz2
infinity-for-reddit-2863fa90be9eefd22f66ce0dc304e488fc5a282c.tar.lz
infinity-for-reddit-2863fa90be9eefd22f66ce0dc304e488fc5a282c.tar.xz
infinity-for-reddit-2863fa90be9eefd22f66ce0dc304e488fc5a282c.tar.zst
infinity-for-reddit-2863fa90be9eefd22f66ce0dc304e488fc5a282c.zip
handle reddit.com/report as a url, not post link (#1179)
Diffstat (limited to 'app')
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/activities/LinkResolverActivity.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/LinkResolverActivity.java b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/LinkResolverActivity.java
index 266ddd11..081d6d8a 100644
--- a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/LinkResolverActivity.java
+++ b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/LinkResolverActivity.java
@@ -174,6 +174,8 @@ public class LinkResolverActivity extends AppCompatActivity {
} else if (path.isEmpty()) {
Intent intent = new Intent(this, MainActivity.class);
startActivity(intent);
+ } else if (path.equals("/report")) {
+ openInWebView(uri);
} else if (path.matches(POST_PATTERN) || path.matches(POST_PATTERN_2)) {
int commentsIndex = segments.lastIndexOf("comments");
if (commentsIndex >= 0 && commentsIndex < segments.size() - 1) {