[Android] Widgets: fix forward and rewind texts flickering
Nicolas Pomepuy
git at videolan.org
Wed May 18 09:57:59 UTC 2022
vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Thu May 12 13:26:28 2022 +0200| [fbb75dcfa2de652bb9cc98e28c0fb46fddb10958] | committer: Duncan McNamara
Widgets: fix forward and rewind texts flickering
> https://code.videolan.org/videolan/vlc-android/commit/fbb75dcfa2de652bb9cc98e28c0fb46fddb10958
---
.../src/org/videolan/vlc/widget/MiniPlayerAppWidgetProvider.kt | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
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 2c99eb618..e92a6b00b 100644
--- a/application/vlc-android/src/org/videolan/vlc/widget/MiniPlayerAppWidgetProvider.kt
+++ b/application/vlc-android/src/org/videolan/vlc/widget/MiniPlayerAppWidgetProvider.kt
@@ -349,6 +349,7 @@ class MiniPlayerAppWidgetProvider : AppWidgetProvider() {
}
}
+ log(appWidgetId, WidgetLogType.INFO, "hasEnoughSpaceForSeek: ${hasEnoughSpaceForSeek(widgetCacheEntry, widgetType)}")
views.setViewVisibility(R.id.progress_round, if (playing) View.VISIBLE else View.GONE)
views.setViewVisibility(R.id.forward, if (playing) View.VISIBLE else View.INVISIBLE)
views.setViewVisibility(R.id.backward, if (playing) View.VISIBLE else View.INVISIBLE)
@@ -478,14 +479,10 @@ class MiniPlayerAppWidgetProvider : AppWidgetProvider() {
views.setViewVisibility(R.id.app_name, View.VISIBLE)
views.setViewVisibility(R.id.songName, View.GONE)
views.setViewVisibility(R.id.artist, View.GONE)
- views.setViewVisibility(R.id.seek_rewind_text, View.GONE)
- views.setViewVisibility(R.id.seek_forward_text, View.GONE)
} else {
views.setViewVisibility(R.id.app_name, View.GONE)
views.setViewVisibility(R.id.songName, View.VISIBLE)
views.setViewVisibility(R.id.artist, View.VISIBLE)
- views.setViewVisibility(R.id.seek_rewind_text, View.VISIBLE)
- views.setViewVisibility(R.id.seek_forward_text, View.VISIBLE)
}
}
More information about the Android
mailing list