[Android] widget: blind fix crash
Sébastien Toque
git at videolan.org
Thu Feb 28 07:51:00 CET 2013
vlc-ports/android | branch: master | Sébastien Toque <xilasz at gmail.com> | Thu Feb 28 07:50:42 2013 +0100| [292d336ec994f750bc6d94cdb35b7fc86a8a135d] | committer: Sébastien Toque
widget: blind fix crash
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=292d336ec994f750bc6d94cdb35b7fc86a8a135d
---
vlc-android/src/org/videolan/vlc/widget/VLCAppWidgetProvider.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/vlc-android/src/org/videolan/vlc/widget/VLCAppWidgetProvider.java b/vlc-android/src/org/videolan/vlc/widget/VLCAppWidgetProvider.java
index c93450e..28ee411 100644
--- a/vlc-android/src/org/videolan/vlc/widget/VLCAppWidgetProvider.java
+++ b/vlc-android/src/org/videolan/vlc/widget/VLCAppWidgetProvider.java
@@ -76,7 +76,7 @@ public class VLCAppWidgetProvider extends AppWidgetProvider {
else
views.setImageViewResource(R.id.cover, R.drawable.cone);
- views.setViewVisibility(R.id.timeline_parent, artist.length() > 0 ? View.VISIBLE : View.INVISIBLE);
+ views.setViewVisibility(R.id.timeline_parent, artist != null && artist.length() > 0 ? View.VISIBLE : View.INVISIBLE);
/* commands */
Intent iBackward = new Intent(ACTION_REMOTE_BACKWARD);
More information about the Android
mailing list