From 066b719b71b87c1ebda35894b1a8bdf2a0c9bc72 Mon Sep 17 00:00:00 2001 From: omer358 Date: Wed, 21 Aug 2024 06:00:34 +0300 Subject: [PATCH] create notifications icon --- .../data/manager/NotificationService.kt | 2 +- .../res/drawable-anydpi/ic_notifications.xml | 105 ++++++++++++++++++ .../res/drawable-hdpi/ic_notifications.png | Bin 0 -> 673 bytes .../res/drawable-mdpi/ic_notifications.png | Bin 0 -> 438 bytes .../res/drawable-xhdpi/ic_notifications.png | Bin 0 -> 952 bytes .../res/drawable-xxhdpi/ic_notifications.png | Bin 0 -> 1464 bytes 6 files changed, 106 insertions(+), 1 deletion(-) create mode 100644 app/src/main/res/drawable-anydpi/ic_notifications.xml create mode 100644 app/src/main/res/drawable-hdpi/ic_notifications.png create mode 100644 app/src/main/res/drawable-mdpi/ic_notifications.png create mode 100644 app/src/main/res/drawable-xhdpi/ic_notifications.png create mode 100644 app/src/main/res/drawable-xxhdpi/ic_notifications.png diff --git a/app/src/main/java/com/example/rememberme/data/manager/NotificationService.kt b/app/src/main/java/com/example/rememberme/data/manager/NotificationService.kt index e69a95b..78bc4d7 100644 --- a/app/src/main/java/com/example/rememberme/data/manager/NotificationService.kt +++ b/app/src/main/java/com/example/rememberme/data/manager/NotificationService.kt @@ -72,7 +72,7 @@ class NotificationService @Inject constructor(private val context: Context) { val largeIcon: Bitmap? = drawable?.let { drawableToBitmap(it) } val notification = NotificationCompat.Builder(context, CHANNEL_ID) - .setSmallIcon(R.drawable.ic_m2) + .setSmallIcon(R.drawable.ic_notifications) .setContentTitle(context.getString(R.string.notification_title, person.firstName)) .setContentText(context.getString(R.string.notification_text, person.place)) .setLargeIcon(largeIcon) diff --git a/app/src/main/res/drawable-anydpi/ic_notifications.xml b/app/src/main/res/drawable-anydpi/ic_notifications.xml new file mode 100644 index 0000000..d93c1a3 --- /dev/null +++ b/app/src/main/res/drawable-anydpi/ic_notifications.xml @@ -0,0 +1,105 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/app/src/main/res/drawable-hdpi/ic_notifications.png b/app/src/main/res/drawable-hdpi/ic_notifications.png new file mode 100644 index 0000000000000000000000000000000000000000..969c8f1e7153bb3db58d4eac5f88e055accde6a9 GIT binary patch literal 673 zcmV;S0$%-zP)I}6vj1;h^$@pAPR$$h-zIRq0pj;uuagi5L^^UMM0}*YcAA?LU7TpWmH5Z+OifE zK?sS0wP?{MC@Aa?b^1=PY{t2XqSE7 z#OwbAY`g;MfZj+(A7>Q!1GcW@*}c#x)WZ2CgUxRIZL>gkB*z?pR@vuumbod}u>H_# z-XjSVHbY-+6Vqre2<1f@gv&ok{x$KUo6uOeK!9B)pwfj z>G7F{K=DfGD)e2lVf4SIJb^a4+${7`^Um82&0F5no@bT>Huzy14cNJUAMV-b_0YS# z6Zi;ilWg!0&d+%c?FlM?r9_#P1Nj)s=^VTg+ku{dtHc!^L32j;RA3XM^FMrAT(`diL4z zbl?`lw|k7W+_w;fr>OXx9a{spm~J*AY~j9zaHS)4pu=oLxWav-Ah??=9jOE9cjy;1 z%?pm#+&c<_*SXTrSB=zxP6@r5M40E^Q4svbmBx^y57Z;|uP=-~V4Jyr00M1X}^`&2nN=QU*c{29Xkjj|`M3 zZrAfZ_w#gjl`S9+#3=9D-B%fHFdxe2TF;1BiJ0L;R8t@Faw`BbZ~D3duKE|BfU@{UWOe_Poo4O6Sa&V!J^Q+z ghI?U-yDR)1-_rl!ZxVUE?f?J)07*qoM6N<$g4k}#Q2+n{ literal 0 HcmV?d00001 diff --git a/app/src/main/res/drawable-xhdpi/ic_notifications.png b/app/src/main/res/drawable-xhdpi/ic_notifications.png new file mode 100644 index 0000000000000000000000000000000000000000..2f5883b0022c43490e4553e78ab3670ac63f1d08 GIT binary patch literal 952 zcmV;p14sOcP)) zp;5$WA{L?|E~GJ)5*1t{$@M>(GraSDXM2+uZ03WXci-9Wxo_sp+?fdzGBPqUGBU;y z=UhEh%l7{UnppQ*Z z6urQ+fSu4K9XB{{F=ZNG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