[Android] Fix TV browsing unknown icon

Nicolas Pomepuy git at videolan.org
Mon Nov 23 13:28:10 CET 2020


vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Tue Nov 17 15:28:21 2020 +0100| [d43bd75cdd6e9a213dbf880ecb82168976cf2269] | committer: Nicolas Pomepuy

Fix TV browsing unknown icon

Fixes #1548

> https://code.videolan.org/videolan/vlc-android/commit/d43bd75cdd6e9a213dbf880ecb82168976cf2269
---

 application/vlc-android/src/org/videolan/vlc/gui/helpers/UiTools.kt | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/application/vlc-android/src/org/videolan/vlc/gui/helpers/UiTools.kt b/application/vlc-android/src/org/videolan/vlc/gui/helpers/UiTools.kt
index d2d09ee09..58c4747ac 100644
--- a/application/vlc-android/src/org/videolan/vlc/gui/helpers/UiTools.kt
+++ b/application/vlc-android/src/org/videolan/vlc/gui/helpers/UiTools.kt
@@ -695,7 +695,8 @@ fun getTvIconRes(mediaLibraryItem: MediaLibraryItem) = when (mediaLibraryItem.it
         when (mw.type) {
             MediaWrapper.TYPE_VIDEO -> R.drawable.ic_browser_video_big_normal
             MediaWrapper.TYPE_DIR -> if (mw.uri.scheme == "file") R.drawable.ic_menu_folder_big else R.drawable.ic_menu_network_big
-            else -> R.drawable.ic_song_big
+            MediaWrapper.TYPE_AUDIO -> R.drawable.ic_song_big
+            else -> R.drawable.ic_browser_unknown_big_normal
         }
     }
     MediaLibraryItem.TYPE_DUMMY -> {



More information about the Android mailing list