Create foreground service notification icon
This commit is contained in:
@@ -63,7 +63,7 @@ class ForegroundService : Service() {
|
||||
.setContentTitle(resources.getString(R.string.service_notification_title))
|
||||
.setContentText(resources.getString(R.string.service_notification_text, port))
|
||||
.setContentIntent(pendingIntent)
|
||||
.setSmallIcon(R.mipmap.ic_launcher)
|
||||
.setSmallIcon(R.drawable.ic_foreground_service)
|
||||
.setTicker("Ticker text")
|
||||
.setPriority(Notification.PRIORITY_HIGH) // for under android 26 compatibility
|
||||
.build()
|
||||
|
||||
BIN
app/src/main/res/drawable-hdpi/ic_foreground_service.png
Normal file
BIN
app/src/main/res/drawable-hdpi/ic_foreground_service.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 523 B |
BIN
app/src/main/res/drawable-mdpi/ic_foreground_service.png
Normal file
BIN
app/src/main/res/drawable-mdpi/ic_foreground_service.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 360 B |
BIN
app/src/main/res/drawable-xhdpi/ic_foreground_service.png
Normal file
BIN
app/src/main/res/drawable-xhdpi/ic_foreground_service.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 681 B |
BIN
app/src/main/res/drawable-xxhdpi/ic_foreground_service.png
Normal file
BIN
app/src/main/res/drawable-xxhdpi/ic_foreground_service.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.0 KiB |
BIN
app/src/main/res/drawable-xxxhdpi/ic_foreground_service.png
Normal file
BIN
app/src/main/res/drawable-xxxhdpi/ic_foreground_service.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.4 KiB |
Reference in New Issue
Block a user