Fixed notification intent.

This commit is contained in:
Felix Ableitner 2013-06-19 00:52:36 +02:00
parent 8455fac93d
commit 7afd8a70eb
2 changed files with 7 additions and 2 deletions

View file

@ -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)

View file

@ -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();