diff options
author | Docile-Alligator <25734209+Docile-Alligator@users.noreply.github.com> | 2024-05-09 22:06:54 +0000 |
---|---|---|
committer | Docile-Alligator <25734209+Docile-Alligator@users.noreply.github.com> | 2024-05-09 22:06:54 +0000 |
commit | 019970d5fefd19cf6860de039634762542e9b49b (patch) | |
tree | bdfb686df347d9adbdebd88dba0eee737ef5e07a /app/src/main/java | |
parent | a283e3947360333e05def86d8838d99dcba1ae01 (diff) | |
download | infinity-for-reddit-019970d5fefd19cf6860de039634762542e9b49b.tar infinity-for-reddit-019970d5fefd19cf6860de039634762542e9b49b.tar.gz infinity-for-reddit-019970d5fefd19cf6860de039634762542e9b49b.tar.bz2 infinity-for-reddit-019970d5fefd19cf6860de039634762542e9b49b.tar.lz infinity-for-reddit-019970d5fefd19cf6860de039634762542e9b49b.tar.xz infinity-for-reddit-019970d5fefd19cf6860de039634762542e9b49b.tar.zst infinity-for-reddit-019970d5fefd19cf6860de039634762542e9b49b.zip |
Fix controller animation issues in StyledPlayerView in ExoPlayer.
Diffstat (limited to 'app/src/main/java')
-rw-r--r-- | app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewVideoActivity.java | 5 |
1 files changed, 3 insertions, 2 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 54eecf43..0600191a 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewVideoActivity.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewVideoActivity.java @@ -57,6 +57,7 @@ import com.google.android.exoplayer2.source.hls.HlsMediaSource; import com.google.android.exoplayer2.trackselection.DefaultTrackSelector; import com.google.android.exoplayer2.trackselection.TrackSelectionOverride; import com.google.android.exoplayer2.ui.PlayerControlView; +import com.google.android.exoplayer2.ui.StyledPlayerControlView; import com.google.android.exoplayer2.ui.StyledPlayerView; import com.google.android.exoplayer2.ui.TrackSelectionDialogBuilder; import com.google.android.exoplayer2.upstream.DataSource; @@ -464,9 +465,9 @@ public class ViewVideoActivity extends AppCompatActivity implements CustomFontRe } else { StyledPlayerView videoPlayerView = findViewById(R.id.player_view_view_video_activity); videoPlayerView.setPlayer(player); - videoPlayerView.setControllerVisibilityListener(new StyledPlayerView.ControllerVisibilityListener() { + videoPlayerView.setControllerVisibilityListener(new StyledPlayerControlView.VisibilityListener() { @Override - public void onVisibilityChanged(int visibility) { + public void onVisibilityChange(int visibility) { switch (visibility) { case View.GONE: getWindow().getDecorView().setSystemUiVisibility( |