forked from upstream-mirrors/OpenTracks
Foreground service notification now uses the logo directly (vector).
This commit is contained in:
@@ -425,7 +425,7 @@ public class TrackRecordingService extends Service {
|
|||||||
.setContentText(getString(messageId))
|
.setContentText(getString(messageId))
|
||||||
.setContentTitle(getString(R.string.app_name))
|
.setContentTitle(getString(R.string.app_name))
|
||||||
.setOngoing(true)
|
.setOngoing(true)
|
||||||
.setSmallIcon(R.drawable.ic_stat_notify_recording)
|
.setSmallIcon(R.drawable.ic_logo)
|
||||||
.setCategory(Notification.CATEGORY_SERVICE)
|
.setCategory(Notification.CATEGORY_SERVICE)
|
||||||
.setWhen(System.currentTimeMillis());
|
.setWhen(System.currentTimeMillis());
|
||||||
startForeground(1, builder.build());
|
startForeground(1, builder.build());
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 40 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 40 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 40 KiB |
Reference in New Issue
Block a user