Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -485,9 +485,14 @@ private void buildNotification() {
* Intents
*/
Intent intentPlayPause = new Intent(NOTIFICATION_INTENT_PLAY_PAUSE);
Intent intentOpenPlayer = new Intent(NOTIFICATION_INTENT_OPEN_PLAYER);
Intent intentCancel = new Intent(NOTIFICATION_INTENT_CANCEL);

/**
* Intent for opening the player by clicking at the notification
*/
Intent intentOpenPlayer = new Intent(getPackageManager().getLaunchIntentForPackage(getPackageName()));
intentOpenPlayer.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);

/**
* Pending intents
*/
Expand Down