kopia lustrzana https://github.com/meshtastic/Meshtastic-Android
make a guaranteed non vector version of icon for older androids
rodzic
4ea44095df
commit
55fd7c7330
|
@ -73,7 +73,7 @@ class MeshServiceNotifications(
|
|||
val builder = NotificationCompat.Builder(context, channelId).setOngoing(true)
|
||||
.setPriority(NotificationCompat.PRIORITY_MIN)
|
||||
.setCategory(category)
|
||||
.setSmallIcon(R.drawable.app_icon)
|
||||
.setSmallIcon(if (Build.VERSION.SDK_INT < Build.VERSION_CODES.N) R.drawable.app_icon_novect else R.drawable.app_icon) // vector form icons don't work reliably on older androids
|
||||
.setContentTitle(summaryString) // leave this off for now so our notification looks smaller
|
||||
.setVisibility(NotificationCompat.VISIBILITY_PUBLIC)
|
||||
.setContentIntent(openAppIntent)
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
app_icon.png
|
|
@ -0,0 +1 @@
|
|||
app_icon.png
|
|
@ -0,0 +1 @@
|
|||
app_icon.png
|
|
@ -0,0 +1 @@
|
|||
app_icon.png
|
Ładowanie…
Reference in New Issue