[Android] Fix the remote access browsing item icon big variants
Nicolas Pomepuy
git at videolan.org
Thu Feb 22 13:29:25 UTC 2024
vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Wed Feb 7 14:03:34 2024 +0100| [ec0c6f8a2d190e80ef5bac13c5e9df25b37a387d] | committer: Nicolas Pomepuy
Fix the remote access browsing item icon big variants
> https://code.videolan.org/videolan/vlc-android/commit/ec0c6f8a2d190e80ef5bac13c5e9df25b37a387d
---
.../src/main/java/org/videolan/vlc/webserver/RemoteAccessRouting.kt | 6 +++---
buildsystem/network-sharing-server/src/components/MediaItem.vue | 4 ++--
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/application/webserver/src/main/java/org/videolan/vlc/webserver/RemoteAccessRouting.kt b/application/webserver/src/main/java/org/videolan/vlc/webserver/RemoteAccessRouting.kt
index a90893778e..90ba2c6ddc 100644
--- a/application/webserver/src/main/java/org/videolan/vlc/webserver/RemoteAccessRouting.kt
+++ b/application/webserver/src/main/java/org/videolan/vlc/webserver/RemoteAccessRouting.kt
@@ -914,7 +914,7 @@ fun Route.setupRouting(appContext: Context, scope: CoroutineScope) {
return at get
}
}
- if (call.request.queryParameters["type"] == "video-folder") {
+ if (type == "video-folder") {
call.request.queryParameters["id"]?.let { id ->
val folder = appContext.getFromMl {
getFolder(Folder.TYPE_FOLDER_VIDEO, id.toLong())
@@ -927,13 +927,13 @@ fun Route.setupRouting(appContext: Context, scope: CoroutineScope) {
}
}
}
- BitmapUtil.encodeImage(BitmapUtil.vectorToBitmap(appContext, if (type?.endsWith("_big") == true) R.drawable.ic_folder_big else R.drawable.ic_folder, 256, 256), true)?.let {
+ BitmapUtil.encodeImage(BitmapUtil.vectorToBitmap(appContext, if (type.endsWith("_big")) R.drawable.ic_folder_big else R.drawable.ic_folder, 256, 256), true)?.let {
call.respondBytes(ContentType.Image.PNG) { it }
return at get
}
}
if (type == "new-stream" || type == "new-stream_big") {
- BitmapUtil.encodeImage(BitmapUtil.vectorToBitmap(appContext, if (type?.endsWith("_big") == true) R.drawable.ic_remote_stream_add_big else R.drawable.ic_remote_stream_add, 256, 256), true)?.let {
+ BitmapUtil.encodeImage(BitmapUtil.vectorToBitmap(appContext, if (type.endsWith("_big")) R.drawable.ic_remote_stream_add_big else R.drawable.ic_remote_stream_add, 256, 256), true)?.let {
call.respondBytes(ContentType.Image.PNG) { it }
return at get
}
diff --git a/buildsystem/network-sharing-server/src/components/MediaItem.vue b/buildsystem/network-sharing-server/src/components/MediaItem.vue
index 86863f26d6..ebad73b69b 100644
--- a/buildsystem/network-sharing-server/src/components/MediaItem.vue
+++ b/buildsystem/network-sharing-server/src/components/MediaItem.vue
@@ -1,8 +1,8 @@
<template>
<div v-if="(isCard)" class="card">
<div v-on:click="manageClick" class="ratio clickable" v-bind:class="(mainImgClasses())">
- <img v-if="this.mediaType == 'file'" v-lazy="$getImageUrl(media, media.fileType)" class="media-img-top">
- <img v-else v-lazy="$getImageUrl(media, this.mediaType)" class="media-img-top">
+ <img v-if="this.mediaType == 'file'" v-lazy="$getImageUrl(media, `${media.fileType}_big`)" class="media-img-top">
+ <img v-else v-lazy="$getImageUrl(media, `${this.mediaType}_big`)" class="media-img-top">
<div class="media-overlay" v-show="!isBrowse()">
<img class="overlay-play" :src="(isOpenable() ? `./icons/open.svg` : `./icons/play_circle_white.svg`)"
width="48" />
More information about the Android
mailing list