diff options
author | Docile-Alligator <25734209+Docile-Alligator@users.noreply.github.com> | 2024-02-28 16:43:50 +0000 |
---|---|---|
committer | Docile-Alligator <25734209+Docile-Alligator@users.noreply.github.com> | 2024-02-28 16:43:50 +0000 |
commit | 28acf9933dd3f5eedfae857155306b6140fab0b5 (patch) | |
tree | d19d8ca15b675f49c9bedbc1996cadff7cc7fd46 | |
parent | 0ae49fc19f390758a3300c29704bb4e677fbabcf (diff) | |
download | infinity-for-reddit-28acf9933dd3f5eedfae857155306b6140fab0b5.tar infinity-for-reddit-28acf9933dd3f5eedfae857155306b6140fab0b5.tar.gz infinity-for-reddit-28acf9933dd3f5eedfae857155306b6140fab0b5.tar.bz2 infinity-for-reddit-28acf9933dd3f5eedfae857155306b6140fab0b5.tar.lz infinity-for-reddit-28acf9933dd3f5eedfae857155306b6140fab0b5.tar.xz infinity-for-reddit-28acf9933dd3f5eedfae857155306b6140fab0b5.tar.zst infinity-for-reddit-28acf9933dd3f5eedfae857155306b6140fab0b5.zip |
Version 7.0.1. Fix fallback video file name in ViewVideoActivity.
Diffstat (limited to '')
-rw-r--r-- | app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewVideoActivity.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewVideoActivity.java b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewVideoActivity.java index 697f0237..27d9e6cf 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewVideoActivity.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewVideoActivity.java @@ -843,7 +843,7 @@ public class ViewVideoActivity extends AppCompatActivity implements CustomFontRe videoType = VIDEO_TYPE_DIRECT; videoDownloadUrl = videoFallbackDirectUrl; mVideoUri = Uri.parse(videoFallbackDirectUrl); - videoFileName = FilenameUtils.getName(videoDownloadUrl); + videoFileName = videoFileName == null ? FilenameUtils.getName(videoDownloadUrl) : videoFileName; player.prepare(); player.setMediaSource(new ProgressiveMediaSource.Factory(dataSourceFactory).createMediaSource(MediaItem.fromUri(mVideoUri))); preparePlayer(savedInstanceState); |