Added notification icon for playback service
BIN
res/drawable-hdpi-v11/ic_stat_antenna.png
Normal file
|
After Width: | Height: | Size: 663 B |
BIN
res/drawable-hdpi/ic_stat_antenna.png
Normal file
|
After Width: | Height: | Size: 648 B |
BIN
res/drawable-ldpi-v11/ic_stat_antenna.png
Normal file
|
After Width: | Height: | Size: 296 B |
BIN
res/drawable-ldpi/ic_stat_antenna.png
Normal file
|
After Width: | Height: | Size: 289 B |
BIN
res/drawable-mdpi-v11/ic_stat_antenna.png
Normal file
|
After Width: | Height: | Size: 403 B |
BIN
res/drawable-mdpi/ic_stat_antenna.png
Normal file
|
After Width: | Height: | Size: 388 B |
BIN
res/drawable-xhdpi-v11/ic_stat_antenna.png
Normal file
|
After Width: | Height: | Size: 922 B |
BIN
res/drawable-xhdpi/ic_stat_antenna.png
Normal file
|
After Width: | Height: | Size: 882 B |
@ -24,6 +24,7 @@ import android.util.Log;
|
|||||||
import android.view.KeyEvent;
|
import android.view.KeyEvent;
|
||||||
import android.view.SurfaceHolder;
|
import android.view.SurfaceHolder;
|
||||||
import de.danoeh.antennapod.PodcastApp;
|
import de.danoeh.antennapod.PodcastApp;
|
||||||
|
import de.danoeh.antennapod.R;
|
||||||
import de.danoeh.antennapod.activity.MediaplayerActivity;
|
import de.danoeh.antennapod.activity.MediaplayerActivity;
|
||||||
import de.danoeh.antennapod.feed.Feed;
|
import de.danoeh.antennapod.feed.Feed;
|
||||||
import de.danoeh.antennapod.feed.FeedItem;
|
import de.danoeh.antennapod.feed.FeedItem;
|
||||||
@ -513,12 +514,12 @@ public class PlaybackService extends Service {
|
|||||||
PendingIntent.FLAG_UPDATE_CURRENT);
|
PendingIntent.FLAG_UPDATE_CURRENT);
|
||||||
|
|
||||||
Bitmap icon = BitmapFactory.decodeResource(null,
|
Bitmap icon = BitmapFactory.decodeResource(null,
|
||||||
android.R.drawable.stat_notify_sdcard);
|
R.drawable.ic_stat_antenna);
|
||||||
notificationBuilder = new NotificationCompat.Builder(this)
|
notificationBuilder = new NotificationCompat.Builder(this)
|
||||||
.setContentTitle("Mediaplayer Service")
|
.setContentTitle("Mediaplayer Service")
|
||||||
.setContentText("Click here for more info").setOngoing(true)
|
.setContentText("Click here for more info").setOngoing(true)
|
||||||
.setContentIntent(pIntent).setLargeIcon(icon)
|
.setContentIntent(pIntent).setLargeIcon(icon)
|
||||||
.setSmallIcon(android.R.drawable.stat_notify_sdcard);
|
.setSmallIcon(R.drawable.ic_stat_antenna);
|
||||||
|
|
||||||
startForeground(NOTIFICATION_ID, notificationBuilder.getNotification());
|
startForeground(NOTIFICATION_ID, notificationBuilder.getNotification());
|
||||||
Log.d(TAG, "Notification set up");
|
Log.d(TAG, "Notification set up");
|
||||||
|
|||||||