From a77afae4ea5ce18e2cf38785e2cefab52b777314 Mon Sep 17 00:00:00 2001 From: Marcel Hibbe Date: Wed, 22 May 2024 14:42:23 +0200 Subject: [PATCH] use notification logo from separate xml file ic_notification.xml was not existing/not used in android talk app, but on brander there is code to replace ic_notification.xml with a custom icon. ic_notification.xml is now created with the same icon as for ic_logo.xml and used for notifications. So from now on branded versions have the ability to overwrite the icon. Signed-off-by: Marcel Hibbe --- .../nextcloud/talk/jobs/NotificationWorker.kt | 2 +- app/src/main/res/drawable/ic_notification.xml | 23 +++++++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 app/src/main/res/drawable/ic_notification.xml diff --git a/app/src/main/java/com/nextcloud/talk/jobs/NotificationWorker.kt b/app/src/main/java/com/nextcloud/talk/jobs/NotificationWorker.kt index 221f4adaaa..d500b2c9a4 100644 --- a/app/src/main/java/com/nextcloud/talk/jobs/NotificationWorker.kt +++ b/app/src/main/java/com/nextcloud/talk/jobs/NotificationWorker.kt @@ -519,7 +519,7 @@ class NotificationWorker(context: Context, workerParams: WorkerParameters) : Wor .setPriority(NotificationCompat.PRIORITY_HIGH) .setCategory(category) .setLargeIcon(getLargeIcon()) - .setSmallIcon(R.drawable.ic_logo) + .setSmallIcon(R.drawable.ic_notification) .setContentTitle(contentTitle) .setContentText(contentText) .setSubText(baseUrl) diff --git a/app/src/main/res/drawable/ic_notification.xml b/app/src/main/res/drawable/ic_notification.xml new file mode 100644 index 0000000000..4ef7d92cfd --- /dev/null +++ b/app/src/main/res/drawable/ic_notification.xml @@ -0,0 +1,23 @@ + + + + + +