make a guaranteed non vector version of icon for older androids

pull/229/head
Kevin Hester 2021-02-04 08:20:43 +08:00
rodzic 4ea44095df
commit 55fd7c7330
5 zmienionych plików z 5 dodań i 1 usunięć

Wyświetl plik

@ -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)

Wyświetl plik

@ -0,0 +1 @@
app_icon.png

Wyświetl plik

@ -0,0 +1 @@
app_icon.png

Wyświetl plik

@ -0,0 +1 @@
app_icon.png

Wyświetl plik

@ -0,0 +1 @@
app_icon.png