Icono de notificación monocromo (ic_notif): silueta blanca del launcher
Android 5+ tiñe el small icon: el launcher en color queda como blob blanco. ic_notif en drawable-{m,h,xh,xxh,xxxh}dpi: blanco puro sobre alfa, generado desde la silueta del ic_launcher.
This commit is contained in:
1 parent
7d7918a50f
commit
88d5a9e90f
6 files changed
+1
-1
No files matched your search
@@ -39,7 +39,7 @@ class AlarmNotif : BroadcastReceiver() {
|
|||||||
val notificationBuilder = NotificationCompat.Builder(context, "STN")
|
val notificationBuilder = NotificationCompat.Builder(context, "STN")
|
||||||
.setContentTitle(anime)
|
.setContentTitle(anime)
|
||||||
.setStyle(NotificationCompat.BigTextStyle().bigText(frase))
|
.setStyle(NotificationCompat.BigTextStyle().bigText(frase))
|
||||||
.setSmallIcon(R.mipmap.ic_launcher)
|
.setSmallIcon(R.drawable.ic_notif)
|
||||||
.setContentText(frase)
|
.setContentText(frase)
|
||||||
.setWhen(System.currentTimeMillis())
|
.setWhen(System.currentTimeMillis())
|
||||||
.setContentIntent(PendingIntent.getActivity(context, 0, Intent(context, MainActivity::class.java), PendingIntent.FLAG_IMMUTABLE))
|
.setContentIntent(PendingIntent.getActivity(context, 0, Intent(context, MainActivity::class.java), PendingIntent.FLAG_IMMUTABLE))
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 902 B |
Binary file not shown.
|
After Width: | Height: | Size: 582 B |
Binary file not shown.
|
After Width: | Height: | Size: 1.2 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 1.8 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 2.4 KiB |
Reference in new issue
Block a user