aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorDocile-Alligator <25734209+Docile-Alligator@users.noreply.github.com>2022-08-26 08:08:16 +0000
committerDocile-Alligator <25734209+Docile-Alligator@users.noreply.github.com>2022-08-26 08:08:16 +0000
commit0dc759e9c6d852426520649f58cf33454bda51c6 (patch)
tree31da94b1d29ef050bcd72fe34931bd1c9267dc25 /app
parent965d8ab8aec779d9a300434dd20840f481e3941c (diff)
downloadinfinity-for-reddit-0dc759e9c6d852426520649f58cf33454bda51c6.tar
infinity-for-reddit-0dc759e9c6d852426520649f58cf33454bda51c6.tar.gz
infinity-for-reddit-0dc759e9c6d852426520649f58cf33454bda51c6.tar.bz2
infinity-for-reddit-0dc759e9c6d852426520649f58cf33454bda51c6.tar.lz
infinity-for-reddit-0dc759e9c6d852426520649f58cf33454bda51c6.tar.xz
infinity-for-reddit-0dc759e9c6d852426520649f58cf33454bda51c6.tar.zst
infinity-for-reddit-0dc759e9c6d852426520649f58cf33454bda51c6.zip
Minor bugs fixed.
Diffstat (limited to 'app')
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/activities/LinkResolverActivity.java6
1 files changed, 5 insertions, 1 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 ac305a11..266ddd11 100644
--- a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/LinkResolverActivity.java
+++ b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/LinkResolverActivity.java
@@ -166,7 +166,11 @@ public class LinkResolverActivity extends AppCompatActivity {
} else if (authority.contains("reddit.com") || authority.contains("redd.it") || authority.contains("reddit.app")) {
if (authority.equals("reddit.app.link") && path.isEmpty()) {
String redirect = uri.getQueryParameter("$og_redirect");
- handleUri(Uri.parse(redirect));
+ if (redirect != null) {
+ handleUri(Uri.parse(redirect));
+ } else {
+ deepLinkError(uri);
+ }
} else if (path.isEmpty()) {
Intent intent = new Intent(this, MainActivity.class);
startActivity(intent);