packages/apps/Music
Revisión | 1901e2f909925cb3f9af315b264907ded4acc664 (tree) |
---|---|
Tiempo | 2010-04-23 23:03:20 |
Autor | Daniel Sandler <dsandler@andr...> |
Commiter | Daniel Sandler |
More informative initial string for Music widget.
On first launch, the Music widget now shows
instead of
Required for Froyo out-of-box-experience.
Bug: 2559083
Change-Id: Id9d300413de5dcd6ed619972de24cfe653c75c91
@@ -293,5 +293,8 @@ | ||
293 | 293 | |
294 | 294 | <!--The fast scroll thumb will show one character from this string depending on the position in the list --> |
295 | 295 | <string name="fast_scroll_alphabet">\u0020ABCDEFGHIJKLMNOPQRSTUVWXYZ</string> |
296 | + | |
297 | + <!-- Text shown on widget when first loaded --> | |
298 | + <string name="widget_initial_text">Touch to select music.</string> | |
296 | 299 | </resources> |
297 | 300 |
@@ -68,7 +68,7 @@ public class MediaAppWidgetProvider extends AppWidgetProvider { | ||
68 | 68 | final RemoteViews views = new RemoteViews(context.getPackageName(), R.layout.album_appwidget); |
69 | 69 | |
70 | 70 | views.setViewVisibility(R.id.title, View.GONE); |
71 | - views.setTextViewText(R.id.artist, res.getText(R.string.emptyplaylist)); | |
71 | + views.setTextViewText(R.id.artist, res.getText(R.string.widget_initial_text)); | |
72 | 72 | |
73 | 73 | linkButtons(context, views, false /* not playing */); |
74 | 74 | pushUpdate(context, appWidgetIds, views); |