mirror of
https://codeberg.org/Bazsalanszky/Infinity-For-Lemmy.git
synced 2024-11-07 11:17:25 +01:00
Handle Reddit home links.
This commit is contained in:
parent
f27f7c12a8
commit
b31c96b2d9
@ -80,6 +80,9 @@ public class LinkResolverActivity extends AppCompatActivity {
|
||||
if (authority.equals("reddit.app.link") && path.isEmpty()) {
|
||||
String redirect = uri.getQueryParameter("$og_redirect");
|
||||
handleUri(Uri.parse(redirect));
|
||||
} else if (path.isEmpty()) {
|
||||
Intent intent = new Intent(this, MainActivity.class);
|
||||
startActivity(intent);
|
||||
} else if (path.matches(POST_PATTERN)) {
|
||||
List<String> segments = uri.getPathSegments();
|
||||
int commentsIndex = segments.lastIndexOf("comments");
|
||||
|
Loading…
Reference in New Issue
Block a user