mirror of
https://codeberg.org/Bazsalanszky/Infinity-For-Lemmy.git
synced 2024-12-29 04:17:12 +01:00
Support one more image domain. Have not validate the link yet.
This commit is contained in:
parent
3eb608888b
commit
63e27eb23a
@ -118,7 +118,11 @@ public class LinkResolverActivity extends AppCompatActivity {
|
||||
List<String> segments = uri.getPathSegments();
|
||||
|
||||
if (authority != null) {
|
||||
if (authority.equals("v.redd.it")) {
|
||||
if (authority.equals("reddit-uploaded-media.s3-accelerate.amazonaws.com")) {
|
||||
Intent intent = new Intent(this, ViewImageOrGifActivity.class);
|
||||
intent.putExtra(ViewImageOrGifActivity.EXTRA_IMAGE_URL_KEY, uri.toString());
|
||||
startActivity(intent);
|
||||
} else if (authority.equals("v.redd.it")) {
|
||||
Intent intent = new Intent(this, ViewVideoActivity.class);
|
||||
intent.putExtra(ViewVideoActivity.EXTRA_VIDEO_TYPE, ViewVideoActivity.VIDEO_TYPE_V_REDD_IT);
|
||||
intent.putExtra(ViewVideoActivity.EXTRA_V_REDD_IT_URL, uri.toString());
|
||||
|
Loading…
Reference in New Issue
Block a user