diff options
-rw-r--r-- | res/values-de/strings.xml | 2 | ||||
-rw-r--r-- | res/values/strings.xml | 2 | ||||
-rw-r--r-- | src/github/daneren2005/dsub/fragments/DownloadFragment.java | 4 |
3 files changed, 6 insertions, 2 deletions
diff --git a/res/values-de/strings.xml b/res/values-de/strings.xml index 83105212..db4a92a0 100644 --- a/res/values-de/strings.xml +++ b/res/values-de/strings.xml @@ -197,6 +197,8 @@ <string name="download.downloading_summary_expanded">Aktuell: %1$s
\nGeschätzte Größe: %2$s</string>
<string name="download.failed_to_load">Laden fehlgeschlagen</string>
+ <string name="download.title_now_playing">Aktuelles Lied</string>
+ <string name="download.title_downloading">Aktive Downloads</string>
<string name="sync.title">DSub: Neue Medien verfügbar</string>
<string name="sync.new_podcasts">Neuer Podcast: %s</string>
diff --git a/res/values/strings.xml b/res/values/strings.xml index b54a705e..5b2d9b15 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -197,6 +197,8 @@ <string name="download.downloading_summary_expanded">Current: %1$s
\nEstimated Size: %2$s</string>
<string name="download.failed_to_load">Failed to load</string>
+ <string name="download.title_now_playing">Now Playing</string>
+ <string name="download.title_downloading">Downloading</string>
<string name="sync.title">DSub: New media is available</string>
<string name="sync.new_podcasts">New podcasts: %s</string>
diff --git a/src/github/daneren2005/dsub/fragments/DownloadFragment.java b/src/github/daneren2005/dsub/fragments/DownloadFragment.java index bc30eb02..ec75af80 100644 --- a/src/github/daneren2005/dsub/fragments/DownloadFragment.java +++ b/src/github/daneren2005/dsub/fragments/DownloadFragment.java @@ -146,7 +146,7 @@ public class DownloadFragment extends SubsonicFragment implements OnGestureListe @Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle bundle) {
rootView = inflater.inflate(R.layout.download, container, false);
- setTitle(nowPlaying ? "Now Playing" : "Downloading");
+ setTitle(nowPlaying ? R.string.download_title_now_playing : R.string.download_title_downloading);
mainLayout = rootView.findViewById(R.id.download_layout);
if(!primaryFragment) {
@@ -1403,7 +1403,7 @@ public class DownloadFragment extends SubsonicFragment implements OnGestureListe private void toggleNowPlaying() {
nowPlaying = !nowPlaying;
- setTitle(nowPlaying ? "Now Playing" : "Downloading");
+ setTitle(nowPlaying ? R.string.download_title_now_playing : R.string.download_title_downloading);
onDownloadListChanged(true);
}
|