Android-x86
Fork
Donation

  • R/O
  • HTTP
  • SSH
  • HTTPS

packages-apps-Music: Commit

packages/apps/Music


Commit MetaInfo

Revision1901e2f909925cb3f9af315b264907ded4acc664 (tree)
Time2010-04-23 23:03:20
AuthorDaniel Sandler <dsandler@andr...>
CommiterDaniel Sandler

Log Message

More informative initial string for Music widget.

On first launch, the Music widget now shows

"Touch to select music."

instead of

"Selected playlist is empty."

Required for Froyo out-of-box-experience.

Bug: 2559083
Change-Id: Id9d300413de5dcd6ed619972de24cfe653c75c91

Change Summary

Incremental Difference

--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -293,5 +293,8 @@
293293
294294 <!--The fast scroll thumb will show one character from this string depending on the position in the list -->
295295 <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>
296299 </resources>
297300
--- a/src/com/android/music/MediaAppWidgetProvider.java
+++ b/src/com/android/music/MediaAppWidgetProvider.java
@@ -68,7 +68,7 @@ public class MediaAppWidgetProvider extends AppWidgetProvider {
6868 final RemoteViews views = new RemoteViews(context.getPackageName(), R.layout.album_appwidget);
6969
7070 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));
7272
7373 linkButtons(context, views, false /* not playing */);
7474 pushUpdate(context, appWidgetIds, views);
Show on old repository browser