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

@ -143,7 +143,7 @@ public class PlayingNotificationHelper {
final ComponentName serviceName = new ComponentName(service, MusicService.class);
switch (which) {
case 1:
action = new Intent(MusicService.ACTION_TOGGLE_PLAYBACK);
action = new Intent(MusicService.ACTION_TOGGLE_PAUSE);
action.setComponent(serviceName);
pendingIntent = PendingIntent.getService(service, 1, action, 0);
return pendingIntent;