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

@ -138,7 +138,7 @@ public class WidgetMedium extends AppWidgetProvider {
switch (which) {
case 0:
intent = new Intent(context, 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(context, 0, intent, PendingIntent.FLAG_UPDATE_CURRENT);
case 1:
intent = new Intent(MusicService.ACTION_TOGGLE_PAUSE);