From 3ac05e4b889bd6df1a327cf2945d04cfcbe7057e Mon Sep 17 00:00:00 2001 From: Torsten Grote Date: Mon, 29 Aug 2022 11:56:48 -0300 Subject: [PATCH] Use raster image for mailbox problem notifications --- .../AndroidNotificationManagerImpl.java | 2 +- .../notification_mailbox.xml | 18 ++++++++++++++++++ .../drawable-hdpi/notification_mailbox.png | Bin 0 -> 407 bytes .../drawable-mdpi/notification_mailbox.png | Bin 0 -> 274 bytes .../drawable-xhdpi/notification_mailbox.png | Bin 0 -> 651 bytes .../drawable-xxhdpi/notification_mailbox.png | Bin 0 -> 858 bytes 6 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 briar-android/src/main/res/drawable-anydpi-v24/notification_mailbox.xml create mode 100644 briar-android/src/main/res/drawable-hdpi/notification_mailbox.png create mode 100644 briar-android/src/main/res/drawable-mdpi/notification_mailbox.png create mode 100644 briar-android/src/main/res/drawable-xhdpi/notification_mailbox.png create mode 100644 briar-android/src/main/res/drawable-xxhdpi/notification_mailbox.png diff --git a/briar-android/src/main/java/org/briarproject/briar/android/AndroidNotificationManagerImpl.java b/briar-android/src/main/java/org/briarproject/briar/android/AndroidNotificationManagerImpl.java index 433410c7e..130b9cb9e 100644 --- a/briar-android/src/main/java/org/briarproject/briar/android/AndroidNotificationManagerImpl.java +++ b/briar-android/src/main/java/org/briarproject/briar/android/AndroidNotificationManagerImpl.java @@ -785,7 +785,7 @@ class AndroidNotificationManagerImpl implements AndroidNotificationManager, NotificationCompat.Builder b = new NotificationCompat.Builder( appContext, MAILBOX_PROBLEM_CHANNEL_ID); - b.setSmallIcon(R.drawable.ic_mailbox); + b.setSmallIcon(R.drawable.notification_mailbox); b.setColor(getColor(appContext, R.color.briar_red_500)); b.setContentTitle( appContext.getText(R.string.mailbox_error_notification_title)); diff --git a/briar-android/src/main/res/drawable-anydpi-v24/notification_mailbox.xml b/briar-android/src/main/res/drawable-anydpi-v24/notification_mailbox.xml new file mode 100644 index 000000000..af5520b88 --- /dev/null +++ b/briar-android/src/main/res/drawable-anydpi-v24/notification_mailbox.xml @@ -0,0 +1,18 @@ + + + + + diff --git a/briar-android/src/main/res/drawable-hdpi/notification_mailbox.png b/briar-android/src/main/res/drawable-hdpi/notification_mailbox.png new file mode 100644 index 0000000000000000000000000000000000000000..b46f9b448fb403ed5117d0d73deb4fbc38f17a1f GIT binary patch literal 407 zcmV;I0cie-P)85tpLB~3q@3Xx=ggYD?aysA(fk=erK4>>Wc+asRr+XNcLYa&q zyzAJI(*yKMp literal 0 HcmV?d00001 diff --git a/briar-android/src/main/res/drawable-mdpi/notification_mailbox.png b/briar-android/src/main/res/drawable-mdpi/notification_mailbox.png new file mode 100644 index 0000000000000000000000000000000000000000..dbcb251ef477918c6122623d3762f947a2596766 GIT binary patch literal 274 zcmV+t0qy>YP)&cab3O_tHXE2Y9|gu%1IGDWaEo)?zWBG-#TPpye;0Km6jD1xALgv=Ofz8SD zktzTPR^i~|g0&P2);!r-mIWX#j=uaER#W<;GR|%y29CQH0DphQ#`~|}&sThpGxBaX Y9=n;R^9JlIkpKVy07*qoM6N<$g0P)&RsaA1 literal 0 HcmV?d00001 diff --git a/briar-android/src/main/res/drawable-xhdpi/notification_mailbox.png b/briar-android/src/main/res/drawable-xhdpi/notification_mailbox.png new file mode 100644 index 0000000000000000000000000000000000000000..8caa6874f04cbe1806d34197ad99382a0423282c GIT binary patch literal 651 zcmeAS@N?(olHy`uVBq!ia0vp^1|ZDA1|-9oezr3(Fa>$KIEGZjy}gl`EA1$9GyD#rv9ry43o6lC-mG)26=ZZW{`?j|`<>Fdth z6hE%Eu8dn=HLoJ=kwElZuJd<($Q_=0#2Dz>S0NS8j(wMSr!sG*#gVY(hm6hl9WPM- zc;<-WHoiYAz0-H^`*5cBz2fg*|EIj}NLS8I=pOkj1hlK*qhd||**jh~#=xNQ z+s*&*{@U;NoNYiMD7~kW-F+?)ZT{=Kz-!Z_O5yLmQ7_cNVgBmQeZTJC zYNeH@t+fm9$Lju=d)BjK_q@>Q<$ZOwKhECLIb!>Mo$l9_vHN$tluW9Z%H1h{r>y

{(Qez&0%Q0cGv$$`+i=&AG?PC;~u^LQTjE{zdVfl a$HXnW^qsT$jt{^@#^CAd=d#Wzp$Pz6Yc}x! literal 0 HcmV?d00001 diff --git a/briar-android/src/main/res/drawable-xxhdpi/notification_mailbox.png b/briar-android/src/main/res/drawable-xxhdpi/notification_mailbox.png new file mode 100644 index 0000000000000000000000000000000000000000..406e015718d0960fd675d0ffad991339338cc435 GIT binary patch literal 858 zcmeAS@N?(olHy`uVBq!ia0vp^9w5xY1|&n@Zgyv2U{>^WaSW-5dwctBpopVLYoe0^ z3lKRgwD2Aj@Kcj&l5}93b#PW=O2OR6KbY?=`hD))^xX3{p`VZ6D&F;8H)2V{?%kJP zep&B&JD8@ZqR^D1s!n*8XGX8VmxhK2v8IOn{aVNridaa)Pc9Q&sN z(OQ3QiOpYmOtO)>)td(FsYeIKcqHk5@QRURvTI8)W|AIF@Zn&(3v z%>;(QCZmsMCOzCbUm|X1MH(;^*7(?LRyoId_2|w8yDY>*#MvV*oMu1Ynm+BwkI(P}28MsCvb>(=H;^8XJ#F`NHNVC7y*&Hkvc-{Uy?-Nv-T*Z{_Xlc{ zt?&&0_m~e7m%u1rDPe!7-)T<$B*h<-edh|L&rjj7+qg3L(VNM<56|bko?!9aH|dYZ ztDl#B=TuIUxW8ksPJL_k%gWx=Bayp>9^b$I@4*#w0qfnukN+RoU-+r>$i6(@!*x%; z2zS`VcHjP=6#eE!T#tS4++WXhpYbamTfZy#-kzgx5|8|NHdoj4jI7_4`+M|j{wf|l xe&6h8?W@N1wreW>=T4sf`N;J-e#`IvVKY#0eJ5?=W(&+S44$rjF6*2UngHYno-6