diff options
author | daniel <daniel@danielpc> | 2012-06-05 21:23:55 +0200 |
---|---|---|
committer | daniel <daniel@danielpc> | 2012-06-05 21:23:55 +0200 |
commit | bd15b03c64f3676a1840c70d60fee340b015ade4 (patch) | |
tree | a79bd1f4d1f955f4ec4a9782571b2aaa1cc752a5 /src/de | |
parent | 4dba7a3ec5e7e33157fde62fdb1f389beaf9522b (diff) | |
download | AntennaPod-bd15b03c64f3676a1840c70d60fee340b015ade4.zip |
Switched from NotificationBuilder to NotificationCompatBuilder
Diffstat (limited to 'src/de')
-rw-r--r-- | src/de/podfetcher/service/PlaybackService.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/de/podfetcher/service/PlaybackService.java b/src/de/podfetcher/service/PlaybackService.java index c44327f9e..30a14a38f 100644 --- a/src/de/podfetcher/service/PlaybackService.java +++ b/src/de/podfetcher/service/PlaybackService.java @@ -10,6 +10,7 @@ import android.content.Intent; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.media.MediaPlayer; +import android.support.v4.app.NotificationCompat; import android.util.Log; import android.net.Uri; import android.os.Binder; @@ -33,7 +34,7 @@ public class PlaybackService extends Service { "action.de.podfetcher.service.playerStatusChanged"; private static final int NOTIFICATION_ID = 1; - private Notification.Builder notificationBuilder; + private NotificationCompat.Builder notificationBuilder; private Notification notification; private MediaPlayer player; @@ -105,7 +106,7 @@ public class PlaybackService extends Service { this, 0, new Intent(this, MediaplayerActivity.class), PendingIntent.FLAG_UPDATE_CURRENT); Bitmap icon = BitmapFactory.decodeResource(null, R.drawable.stat_notify_sdcard); - notificationBuilder = new Notification.Builder(this) + notificationBuilder = new NotificationCompat.Builder(this) .setContentTitle("Mediaplayer Service") .setContentInfo("Click here for more info") .setOngoing(true) |