Skip to content

Commit 6b49a8f

Browse files
Fixed some links cannot be opened in this app but it is still present in app chooser.
1 parent ab56b26 commit 6b49a8f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

app/src/main/java/ml/docilealligator/infinityforreddit/Activity/LinkResolverActivity.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,12 @@ protected void onCreate(Bundle savedInstanceState) {
149149
}
150150

151151
private void deepLinkError(Uri uri) {
152+
String authority = uri.getAuthority();
153+
if(authority != null && (authority.contains("reddit.com") || authority.contains("redd.it") || authority.contains("reddit.app.link"))) {
154+
openInCustomTabs(uri, getPackageManager());
155+
return;
156+
}
157+
152158
Intent intent = new Intent(Intent.ACTION_VIEW);
153159
intent.setData(uri);
154160

0 commit comments

Comments
 (0)