[Android] Fix huge performance issue when loading a long list of media

Nicolas Pomepuy git at videolan.org
Wed Feb 28 10:33:47 UTC 2024


vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Mon Feb 26 09:03:37 2024 +0100| [9afc31cc602c9df8425fcbd2dc88bbcab5ff73e5] | committer: Nicolas Pomepuy

Fix huge performance issue when loading a long list of media

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

 buildsystem/network-sharing-server/src/components/MediaItem.vue    | 2 +-
 buildsystem/network-sharing-server/src/components/UploadDialog.vue | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/buildsystem/network-sharing-server/src/components/MediaItem.vue b/buildsystem/network-sharing-server/src/components/MediaItem.vue
index 33a4812c78..3d2165b92d 100644
--- a/buildsystem/network-sharing-server/src/components/MediaItem.vue
+++ b/buildsystem/network-sharing-server/src/components/MediaItem.vue
@@ -149,7 +149,7 @@ export default {
         }
     },
     mounted() {
-        var tooltipTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]'))
+        var tooltipTriggerList = [].slice.call(this.$el.querySelectorAll('[data-bs-toggle="tooltip"]'))
         tooltipTriggerList.map(function (tooltipTriggerEl) {
             return new Tooltip(tooltipTriggerEl, {
                 trigger: 'hover'
diff --git a/buildsystem/network-sharing-server/src/components/UploadDialog.vue b/buildsystem/network-sharing-server/src/components/UploadDialog.vue
index 05d9e47662..d018d96c15 100644
--- a/buildsystem/network-sharing-server/src/components/UploadDialog.vue
+++ b/buildsystem/network-sharing-server/src/components/UploadDialog.vue
@@ -126,7 +126,7 @@ export default {
       e.stopPropagation();
     }.bind(this), false);
 
-    var tooltipTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]'))
+    var tooltipTriggerList = [].slice.call(this.$el.querySelectorAll('[data-bs-toggle="tooltip"]'))
     tooltipTriggerList.map(function (tooltipTriggerEl) {
       return new Tooltip(tooltipTriggerEl, {
         trigger: 'hover'



More information about the Android mailing list