From f05462e3339fc2620193cf2d27da6143da3161f6 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Wed, 14 Apr 2021 18:17:29 +0200 Subject: [PATCH] Set notifications icon --- .../NotificationsService.java | 2 +- .../drawable-anydpi-v24/ic_notifications.xml | 17 +++++++++++++++++ .../res/drawable-hdpi/ic_notifications.png | Bin 0 -> 390 bytes .../res/drawable-mdpi/ic_notifications.png | Bin 0 -> 280 bytes .../res/drawable-xhdpi/ic_notifications.png | Bin 0 -> 509 bytes .../res/drawable-xxhdpi/ic_notifications.png | Bin 0 -> 750 bytes 6 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 android/app/src/main/res/drawable-anydpi-v24/ic_notifications.xml create mode 100644 android/app/src/main/res/drawable-hdpi/ic_notifications.png create mode 100644 android/app/src/main/res/drawable-mdpi/ic_notifications.png create mode 100644 android/app/src/main/res/drawable-xhdpi/ic_notifications.png create mode 100644 android/app/src/main/res/drawable-xxhdpi/ic_notifications.png diff --git a/android/app/src/main/java/org/communiquons/comunic/independentnotifications/NotificationsService.java b/android/app/src/main/java/org/communiquons/comunic/independentnotifications/NotificationsService.java index 10fff31..92f512e 100644 --- a/android/app/src/main/java/org/communiquons/comunic/independentnotifications/NotificationsService.java +++ b/android/app/src/main/java/org/communiquons/comunic/independentnotifications/NotificationsService.java @@ -72,7 +72,7 @@ public class NotificationsService extends Service { Notification notification = new NotificationCompat.Builder(this, CHANNEL_ID) .setContentTitle("Comunic") .setContentText(getText(R.string.independent_push_notification_notification_text)) - .setSmallIcon(R.drawable.splash_icon) + .setSmallIcon(R.drawable.ic_notifications) .setContentIntent(pendingIntent) .build(); startForeground(1, notification); diff --git a/android/app/src/main/res/drawable-anydpi-v24/ic_notifications.xml b/android/app/src/main/res/drawable-anydpi-v24/ic_notifications.xml new file mode 100644 index 0000000..ddc48ab --- /dev/null +++ b/android/app/src/main/res/drawable-anydpi-v24/ic_notifications.xml @@ -0,0 +1,17 @@ + + + + + + + + \ No newline at end of file diff --git a/android/app/src/main/res/drawable-hdpi/ic_notifications.png b/android/app/src/main/res/drawable-hdpi/ic_notifications.png new file mode 100644 index 0000000000000000000000000000000000000000..ecf4bc743ab29ecf37e9285c9eb027edbd2dc089 GIT binary patch literal 390 zcmV;10eSw3P)od(=nz%eD6Pg@E(Z0=;0U>ApQci z^d}I{0^$H5b^u~eAnpR7IT##Ng5)5H!4^VNgTXzG052#A*e@eyc43{!Iu kW*O~yjDk@x3Wg#801}}@$aeOBS^xk507*qoM6N<$f**{QA^-pY literal 0 HcmV?d00001 diff --git a/android/app/src/main/res/drawable-mdpi/ic_notifications.png b/android/app/src/main/res/drawable-mdpi/ic_notifications.png new file mode 100644 index 0000000000000000000000000000000000000000..154cd3acba5d0a39fcaa86d31f2ee2046111757f GIT binary patch literal 280 zcmV+z0q6dSP)p*-5kGujj(gn!102HwY zXqhyB0P!wbTJRN!_tMe=P+Gr4OAEFF@h>12#3A1X#P@+%lUxhpp~U+>aXmEL3xQaD ew2m1CU;qHbt0w5DXT!_@0000hK+ptoU5-UZD z6-h73M`-+S&8y?2*NifEuFk)HyL+1Ro0)s(-mxr+L?V$$B;RA(b}a~lDXFc5I1qVa7_eeO%%8%0x=T>Qbb@v z1T+goO%%8z0@Ef6ToQpL69x8(K+;5kWg?)K)EtlXA+Sg2_gkQs?PXd#)_1V_F24l| z!6Rv4+hhG2seJ{-I$om%(uCStH@d7VXQ#3qUGt!XZ7I${sf#mol8HCyoXp+qU~>Zo zRHJNMwsXMe2m84otVj{(P($j5Z=voyaPdDtMZhuogfY6U2-+!Jd?xT1Tfn6(+N=mVWByy_KMT4o2--z6v7iA#&_S-qTSNv+4i3N=bf>zNC1yK+MO_HDyK~OEt#DazeK@Bt$3mOyzZK9c2&|N`L z3(drWq?hX#X(kr5R}eH9c#M6%cR!xfRs_`ug53M*1p&uM3u9ciB50bj7itMqeT&(XX{rEXW)ND{bJqIibs#dz7 zy%TIbSAaK4)6nJt23&Zj@*nRh@`DYJglXM=?Gqc7kQJa;IoGHH(>ZUea=d@VxE zcW~I9Tubt^S`|0~J`^D4y+6aaaH>7nx(#Ksd(iZ2k6X~M`JcPM4zPl+02qd07=~dO ghG7_nVVKFtUrPVmtN_D>?*IS*07*qoM6N<$g8aEwV*mgE literal 0 HcmV?d00001