mirror of
https://codeberg.org/Bazsalanszky/Infinity-For-Lemmy.git
synced 2024-12-29 04:17:12 +01:00
Fix getRedditUriByPath in LinkResolverActivity.
This commit is contained in:
parent
c87b724a24
commit
8ac8ea3d8b
@ -60,8 +60,12 @@ public class LinkResolverActivity extends AppCompatActivity {
|
|||||||
CustomThemeWrapper mCustomThemeWrapper;
|
CustomThemeWrapper mCustomThemeWrapper;
|
||||||
|
|
||||||
private Uri getRedditUriByPath(String path) {
|
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);
|
return Uri.parse("https://www.reddit.com" + path);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onCreate(Bundle savedInstanceState) {
|
protected void onCreate(Bundle savedInstanceState) {
|
||||||
|
Loading…
Reference in New Issue
Block a user