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
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue