From 9dea15f707b25ee82d7886dbf46a7cc02c5d396f Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Fri, 11 Oct 2013 05:42:11 +0200 Subject: [PATCH] Externalized a string. --- res/values/strings.xml | 1 + src/com/github/nutomic/controldlna/upnp/Provider.java | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/res/values/strings.xml b/res/values/strings.xml index b198e05..f5e0544 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -11,5 +11,6 @@ Next Please select a renderer Album Art + DLNA Playback diff --git a/src/com/github/nutomic/controldlna/upnp/Provider.java b/src/com/github/nutomic/controldlna/upnp/Provider.java index 3244dc8..75140c4 100644 --- a/src/com/github/nutomic/controldlna/upnp/Provider.java +++ b/src/com/github/nutomic/controldlna/upnp/Provider.java @@ -57,6 +57,8 @@ import android.support.v7.media.MediaRouter.ControlRequestCallback; import android.util.Pair; import android.util.SparseArray; +import com.github.nutomic.controldlna.R; + /** * Allows playing to a DLNA renderer from a remote app. * @@ -221,7 +223,8 @@ final class Provider extends MediaRouteProvider { MediaRouteDescriptor routeDescriptor = new MediaRouteDescriptor.Builder( d.getValue().id, d.getValue().name) - .setDescription("DLNA Playback") + .setDescription(getContext().getResources() + .getString(R.string.route_description)) .addControlFilters(CONTROL_FILTERS) .setPlaybackType(MediaRouter.RouteInfo.PLAYBACK_TYPE_REMOTE) .setVolumeHandling(MediaRouter.RouteInfo.PLAYBACK_VOLUME_VARIABLE)