diff --git a/src/com/github/nutomic/controldlna/mediarouter/MediaRouterPlayService.java b/src/com/github/nutomic/controldlna/mediarouter/MediaRouterPlayService.java index 5d64d0b..d9e31fb 100644 --- a/src/com/github/nutomic/controldlna/mediarouter/MediaRouterPlayService.java +++ b/src/com/github/nutomic/controldlna/mediarouter/MediaRouterPlayService.java @@ -126,7 +126,16 @@ public class MediaRouterPlayService extends Service { if (!mBound && !mPollingStatus) stopSelf(); } - }; + + @Override + public void onRouteAdded(MediaRouter router, RouteInfo route) { + if (route.getId().equals(mCurrentRoute.getId())) { + selectRoute(route); + new CreateNotificationTask().execute(mPlaylist.get(mCurrentTrack) + .getFirstPropertyValue(DIDLObject.Property.UPNP.ALBUM_ART_URI.class)); + } + } + }; /** * Creates a notification after the icon bitmap is loaded.