Minor bugs fixed.

This commit is contained in:
Docile-Alligator 2022-08-26 18:08:16 +10:00
parent 965d8ab8ae
commit 0dc759e9c6

View File

@ -166,7 +166,11 @@ public class LinkResolverActivity extends AppCompatActivity {
} else if (authority.contains("reddit.com") || authority.contains("redd.it") || authority.contains("reddit.app")) { } else if (authority.contains("reddit.com") || authority.contains("redd.it") || authority.contains("reddit.app")) {
if (authority.equals("reddit.app.link") && path.isEmpty()) { if (authority.equals("reddit.app.link") && path.isEmpty()) {
String redirect = uri.getQueryParameter("$og_redirect"); String redirect = uri.getQueryParameter("$og_redirect");
handleUri(Uri.parse(redirect)); if (redirect != null) {
handleUri(Uri.parse(redirect));
} else {
deepLinkError(uri);
}
} else if (path.isEmpty()) { } else if (path.isEmpty()) {
Intent intent = new Intent(this, MainActivity.class); Intent intent = new Intent(this, MainActivity.class);
startActivity(intent); startActivity(intent);