mirror of
https://codeberg.org/Bazsalanszky/Infinity-For-Lemmy.git
synced 2024-12-27 19:38:22 +01:00
Fix getRedditUriByPath in LinkResolverActivity.
This commit is contained in:
parent
c87b724a24
commit
8ac8ea3d8b
@ -60,7 +60,11 @@ public class LinkResolverActivity extends AppCompatActivity {
|
||||
CustomThemeWrapper mCustomThemeWrapper;
|
||||
|
||||
private Uri getRedditUriByPath(String path) {
|
||||
return Uri.parse("https://www.reddit.com" + path);
|
||||
if (path.charAt(0) != '/') {
|
||||
return Uri.parse("https://www.reddit.com/" + path);
|
||||
} else {
|
||||
return Uri.parse("https://www.reddit.com" + path);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user