Fixed #48 (Last.fm scrobbling) and refactored a variable name.

This commit is contained in:
Karim Abou Zeid 2015-07-25 21:26:19 +02:00
commit 774843bbcc
4 changed files with 19 additions and 18 deletions

View file

@ -132,7 +132,7 @@ public class WidgetMedium extends AppWidgetProvider {
pendingIntent = PendingIntent.getActivity(context, 0, action, 0);
return pendingIntent;
case 1:
action = new Intent(MusicService.ACTION_TOGGLE_PLAYBACK);
action = new Intent(MusicService.ACTION_TOGGLE_PAUSE);
action.setComponent(serviceName);
pendingIntent = PendingIntent.getService(context, 1, action, 0);
return pendingIntent;