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:
Karim Abou Zeid 2016-01-30 15:48:19 +01:00
commit 79eee79ab7
4 changed files with 150 additions and 33 deletions

View file

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