mirror of
https://codeberg.org/Bazsalanszky/Infinity-For-Lemmy.git
synced 2025-06-30 22:57:52 +02:00
Fixed some links cannot be opened in this app but it is still present in app chooser.
This commit is contained in:
@ -149,6 +149,12 @@ public class LinkResolverActivity extends AppCompatActivity {
|
||||
}
|
||||
|
||||
private void deepLinkError(Uri uri) {
|
||||
String authority = uri.getAuthority();
|
||||
if(authority != null && (authority.contains("reddit.com") || authority.contains("redd.it") || authority.contains("reddit.app.link"))) {
|
||||
openInCustomTabs(uri, getPackageManager());
|
||||
return;
|
||||
}
|
||||
|
||||
Intent intent = new Intent(Intent.ACTION_VIEW);
|
||||
intent.setData(uri);
|
||||
|
||||
|
Reference in New Issue
Block a user