From 3fb17c0450844041b05f685aacfbf590c90a4f77 Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Sun, 14 May 2023 19:58:45 -0700 Subject: [PATCH] exoplayer: button fixes --- app/src/main/java/gallery/memories/MainActivity.kt | 2 ++ app/src/main/res/layout/activity_main.xml | 1 + 2 files changed, 3 insertions(+) diff --git a/app/src/main/java/gallery/memories/MainActivity.kt b/app/src/main/java/gallery/memories/MainActivity.kt index 065e3d75..91e8628d 100644 --- a/app/src/main/java/gallery/memories/MainActivity.kt +++ b/app/src/main/java/gallery/memories/MainActivity.kt @@ -167,6 +167,8 @@ import gallery.memories.databinding.ActivityMainBinding // Bind to player view binding.videoView.player = exoPlayer binding.videoView.visibility = View.VISIBLE + binding.videoView.setShowNextButton(false) + binding.videoView.setShowPreviousButton(false) // Check if HLS source from URI (contains .m3u8 anywhere) if (uri.toString().contains(".m3u8")) { diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml index a63f210f..7edf6d3c 100644 --- a/app/src/main/res/layout/activity_main.xml +++ b/app/src/main/res/layout/activity_main.xml @@ -11,6 +11,7 @@ android:layout_width="match_parent" android:layout_height="match_parent" android:background="@android:color/black" + app:show_buffering="always" />