[Android] Crash fix
Nicolas Pomepuy
git at videolan.org
Fri Jul 5 12:24:22 CEST 2019
vlc-android | branch: master | Nicolas Pomepuy <nicolas.pomepuy at gmail.com> | Fri Jul 5 11:49:50 2019 +0200| [f62a0747e474112d6a4e3e6255a8168976f5349f] | committer: Nicolas Pomepuy
Crash fix
> https://code.videolan.org/videolan/vlc-android/commit/f62a0747e474112d6a4e3e6255a8168976f5349f
---
vlc-android/src/org/videolan/vlc/gui/tv/FileTvItemAdapter.kt | 2 ++
1 file changed, 2 insertions(+)
diff --git a/vlc-android/src/org/videolan/vlc/gui/tv/FileTvItemAdapter.kt b/vlc-android/src/org/videolan/vlc/gui/tv/FileTvItemAdapter.kt
index 6ef43ab98..a75ac91bd 100644
--- a/vlc-android/src/org/videolan/vlc/gui/tv/FileTvItemAdapter.kt
+++ b/vlc-android/src/org/videolan/vlc/gui/tv/FileTvItemAdapter.kt
@@ -7,6 +7,7 @@ import android.os.Build
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
+import android.widget.ImageView
import androidx.fragment.app.Fragment
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.ObsoleteCoroutinesApi
@@ -103,6 +104,7 @@ class FileTvItemAdapter(type: Int, private val eventsHandler: IEventsHandler, va
init {
binding.holder = this
+ binding.scaleType = ImageView.ScaleType.CENTER_INSIDE
if (defaultCover != null) binding.cover = defaultCover
if (AndroidUtil.isMarshMallowOrLater)
itemView.setOnContextClickListener { v ->
More information about the Android
mailing list