mirror of
https://codeberg.org/Bazsalanszky/Infinity-For-Lemmy.git
synced 2024-11-07 03:07:26 +01:00
Fixed some links cannot be opened in this app but it is still present in app chooser.
This commit is contained in:
parent
ab56b26333
commit
6b49a8f8e1
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user