diff options
Diffstat (limited to '')
6 files changed, 5 insertions, 10 deletions
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/PostVideoActivity.java b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/PostVideoActivity.java index 5c1cef68..3eb2fc42 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/PostVideoActivity.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/PostVideoActivity.java @@ -664,7 +664,7 @@ public class PostVideoActivity extends BaseActivity implements FlairBottomSheetF EventBus.getDefault().unregister(this); super.onDestroy(); player.seekToDefaultPosition(); - player.stop(true); + player.stop(); player.release(); } 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 d20f57f8..b996bfb5 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewVideoActivity.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewVideoActivity.java @@ -836,7 +836,7 @@ public class ViewVideoActivity extends AppCompatActivity implements CustomFontRe protected void onDestroy() { super.onDestroy(); player.seekToDefaultPosition(); - player.stop(true); + player.stop(); player.release(); } diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/fragments/ViewImgurVideoFragment.java b/app/src/main/java/ml/docilealligator/infinityforreddit/fragments/ViewImgurVideoFragment.java index 08efb5e0..ea805b36 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/fragments/ViewImgurVideoFragment.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/fragments/ViewImgurVideoFragment.java @@ -338,7 +338,7 @@ public class ViewImgurVideoFragment extends Fragment { public void onDestroy() { super.onDestroy(); player.seekToDefaultPosition(); - player.stop(true); + player.stop(); player.release(); } diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/fragments/ViewRedditGalleryVideoFragment.java b/app/src/main/java/ml/docilealligator/infinityforreddit/fragments/ViewRedditGalleryVideoFragment.java index 8d6a00dc..39969c6e 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/fragments/ViewRedditGalleryVideoFragment.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/fragments/ViewRedditGalleryVideoFragment.java @@ -342,7 +342,7 @@ public class ViewRedditGalleryVideoFragment extends Fragment { public void onDestroy() { super.onDestroy(); player.seekToDefaultPosition(); - player.stop(true); + player.stop(); player.release(); } diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/videoautoplay/DefaultExoCreator.java b/app/src/main/java/ml/docilealligator/infinityforreddit/videoautoplay/DefaultExoCreator.java index ddf321fd..89ebe5eb 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/videoautoplay/DefaultExoCreator.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/videoautoplay/DefaultExoCreator.java @@ -69,7 +69,7 @@ public class DefaultExoCreator implements ExoCreator, MediaSourceEventListener { public DefaultExoCreator(@NonNull ToroExo toro, @NonNull Config config) { this.toro = checkNotNull(toro); this.config = checkNotNull(config); - trackSelector = new DefaultTrackSelector(); + trackSelector = new DefaultTrackSelector(toro.context); loadControl = config.loadControl; mediaSourceBuilder = config.mediaSourceBuilder; diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/videoautoplay/Playable.java b/app/src/main/java/ml/docilealligator/infinityforreddit/videoautoplay/Playable.java index fb9e177e..d6583fc5 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/videoautoplay/Playable.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/videoautoplay/Playable.java @@ -278,11 +278,6 @@ public interface Playable { } @Override - public void onSeekProcessed() { - - } - - @Override public void onVideoSizeChanged(@NonNull VideoSize videoSize) { EventListener.super.onVideoSizeChanged(videoSize); } |