[Android] Widgets: fix name overlapping cover

Duncan McNamara git at videolan.org
Tue Aug 30 06:21:34 UTC 2022


vlc-android | branch: master | Duncan McNamara <dcn.mcnamara at gmail.com> | Thu Aug 18 10:56:19 2022 +0200| [6f48f9e5d8da69681555a9e364937e7a68150517] | committer: Nicolas Pomepuy

Widgets: fix name overlapping cover

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

 .../src/org/videolan/vlc/widget/MiniPlayerAppWidgetProvider.kt       | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/application/vlc-android/src/org/videolan/vlc/widget/MiniPlayerAppWidgetProvider.kt b/application/vlc-android/src/org/videolan/vlc/widget/MiniPlayerAppWidgetProvider.kt
index 9626945d0..323e3ebf9 100644
--- a/application/vlc-android/src/org/videolan/vlc/widget/MiniPlayerAppWidgetProvider.kt
+++ b/application/vlc-android/src/org/videolan/vlc/widget/MiniPlayerAppWidgetProvider.kt
@@ -498,10 +498,15 @@ class MiniPlayerAppWidgetProvider : AppWidgetProvider() {
             views.setImageViewBitmap(R.id.app_icon, context.getColoredBitmapFromColor(R.drawable.ic_widget_icon, foregroundColor, iconSize, iconSize))
             views.setViewVisibility(R.id.cover, View.INVISIBLE)
             views.setViewVisibility(R.id.app_icon, View.VISIBLE)
+            views.setViewVisibility(R.id.separator, View.VISIBLE)
+            views.setViewVisibility(R.id.cover_parent, View.VISIBLE)
+
             widgetCacheEntry.currentCover = null
         } else {
             views.setViewVisibility(R.id.app_icon, View.INVISIBLE)
             views.setViewVisibility(R.id.cover, View.VISIBLE)
+            views.setViewVisibility(R.id.separator, View.VISIBLE)
+            views.setViewVisibility(R.id.cover_parent, View.VISIBLE)
         }
     }
 



More information about the Android mailing list