mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-05-11 16:15:24 -04:00
make a guaranteed non vector version of icon for older androids
This commit is contained in:
@@ -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)
|
||||
|
||||
1
app/src/main/res/drawable-hdpi/app_icon_novect.png
Symbolic link
1
app/src/main/res/drawable-hdpi/app_icon_novect.png
Symbolic link
@@ -0,0 +1 @@
|
||||
app_icon.png
|
||||
1
app/src/main/res/drawable-mdpi/app_icon_novect.png
Symbolic link
1
app/src/main/res/drawable-mdpi/app_icon_novect.png
Symbolic link
@@ -0,0 +1 @@
|
||||
app_icon.png
|
||||
1
app/src/main/res/drawable-xhdpi/app_icon_novect.png
Symbolic link
1
app/src/main/res/drawable-xhdpi/app_icon_novect.png
Symbolic link
@@ -0,0 +1 @@
|
||||
app_icon.png
|
||||
1
app/src/main/res/drawable-xxhdpi/app_icon_novect.png
Symbolic link
1
app/src/main/res/drawable-xxhdpi/app_icon_novect.png
Symbolic link
@@ -0,0 +1 @@
|
||||
app_icon.png
|
||||
Reference in New Issue
Block a user