[Android] Widgets: code cleanup

Nicolas Pomepuy git at videolan.org
Wed May 18 09:57:58 UTC 2022


vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Thu May 12 07:25:14 2022 +0200| [95e1793d330191be52c605cfce9f02040a601f47] | committer: Duncan McNamara

Widgets: code cleanup

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

 .../vlc-android/src/org/videolan/vlc/widget/utils/WidgetCache.kt        | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/application/vlc-android/src/org/videolan/vlc/widget/utils/WidgetCache.kt b/application/vlc-android/src/org/videolan/vlc/widget/utils/WidgetCache.kt
index cfcf33492..7938a0ac7 100644
--- a/application/vlc-android/src/org/videolan/vlc/widget/utils/WidgetCache.kt
+++ b/application/vlc-android/src/org/videolan/vlc/widget/utils/WidgetCache.kt
@@ -30,7 +30,7 @@ import org.videolan.medialibrary.interfaces.media.MediaWrapper
 import org.videolan.vlc.mediadb.models.Widget
 
 object WidgetCache {
-    private val entries = ArrayList<WidgetCacheEntry>()
+    private val entries = mutableListOf<WidgetCacheEntry>()
 
     fun getEntry(widget: Widget): WidgetCacheEntry? {
         entries.forEach { if (it.widget.widgetId == widget.widgetId) return it }



More information about the Android mailing list