mirror of
https://codeberg.org/Bazsalanszky/Infinity-For-Lemmy.git
synced 2025-07-15 05:23:29 +02:00
Fix getRedditUriByPath in LinkResolverActivity.
This commit is contained in:
@ -60,7 +60,11 @@ public class LinkResolverActivity extends AppCompatActivity {
|
|||||||
CustomThemeWrapper mCustomThemeWrapper;
|
CustomThemeWrapper mCustomThemeWrapper;
|
||||||
|
|
||||||
private Uri getRedditUriByPath(String path) {
|
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
|
@Override
|
||||||
|
Reference in New Issue
Block a user