mirror of
https://codeberg.org/Bazsalanszky/Infinity-For-Lemmy.git
synced 2025-07-15 21:43:29 +02:00
Fix getRedditUriByPath in LinkResolverActivity.
This commit is contained in:
@ -60,8 +60,12 @@ public class LinkResolverActivity extends AppCompatActivity {
|
||||
CustomThemeWrapper mCustomThemeWrapper;
|
||||
|
||||
private Uri getRedditUriByPath(String path) {
|
||||
if (path.charAt(0) != '/') {
|
||||
return Uri.parse("https://www.reddit.com/" + path);
|
||||
} else {
|
||||
return Uri.parse("https://www.reddit.com" + path);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
|
Reference in New Issue
Block a user