Tripple click headset button to rewind. Close #63
Also fixed the multiple instance bug when opening the player from the notification or widget.
This commit is contained in:
parent
4afa159dd0
commit
79eee79ab7
4 changed files with 150 additions and 33 deletions
|
|
@ -114,7 +114,7 @@ public class PlayingNotificationHelper {
|
|||
|
||||
private PendingIntent getOpenMusicControllerPendingIntent() {
|
||||
Intent intent = new Intent(service, MainActivity.class);
|
||||
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);
|
||||
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP);
|
||||
return PendingIntent.getActivity(service, 0, intent, PendingIntent.FLAG_UPDATE_CURRENT);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue