diff --git a/src/com/github/nutomic/controldlna/RendererFragment.java b/src/com/github/nutomic/controldlna/RendererFragment.java index 73a3723..00fedea 100644 --- a/src/com/github/nutomic/controldlna/RendererFragment.java +++ b/src/com/github/nutomic/controldlna/RendererFragment.java @@ -282,6 +282,11 @@ public class RendererFragment extends Fragment implements mPlayService.getService().playTrack(position); } + /** + * Shows controls and playlist for the selected media renderer. + * + * @param renderer The new renderer to select. + */ private void selectRenderer(Device renderer) { if (mCurrentRenderer != renderer) { if (mSubscriptionCallback != null) diff --git a/src/com/github/nutomic/controldlna/service/PlayService.java b/src/com/github/nutomic/controldlna/service/PlayService.java index 088152b..8050ba2 100644 --- a/src/com/github/nutomic/controldlna/service/PlayService.java +++ b/src/com/github/nutomic/controldlna/service/PlayService.java @@ -67,8 +67,8 @@ import android.support.v4.app.NotificationCompat; import android.util.Log; import android.widget.Toast; +import com.github.nutomic.controldlna.MainActivity; import com.github.nutomic.controldlna.R; -import com.github.nutomic.controldlna.RendererFragment; public class PlayService extends Service { @@ -194,7 +194,7 @@ public class PlayService extends Service { Notification notification = new NotificationCompat.Builder(this) .setSmallIcon(R.drawable.ic_launcher) .setContentIntent(PendingIntent.getActivity(this, 0, - new Intent(this, RendererFragment.class), 0)) + new Intent(this, MainActivity.class), 0)) .setContentTitle(title) .setContentText(artist) .build();