From 785df2211d7d30ba25611aec7cf6ae45b8c1f1e0 Mon Sep 17 00:00:00 2001 From: Greg Price Date: Fri, 23 Feb 2024 12:59:35 -0800 Subject: [PATCH] notif android: Keep the notification icon from being resource-shrunk away Details in the new comment and in the issue thread. Fixes: #528 --- android/app/src/main/res/raw/keep.xml | 16 ++++++++++++++++ lib/notifications.dart | 3 ++- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 android/app/src/main/res/raw/keep.xml diff --git a/android/app/src/main/res/raw/keep.xml b/android/app/src/main/res/raw/keep.xml new file mode 100644 index 0000000000..a88c32b2f7 --- /dev/null +++ b/android/app/src/main/res/raw/keep.xml @@ -0,0 +1,16 @@ + + + diff --git a/lib/notifications.dart b/lib/notifications.dart index f24a3d1e5a..762f41abbd 100644 --- a/lib/notifications.dart +++ b/lib/notifications.dart @@ -322,7 +322,8 @@ class NotificationDisplayManager { '(Zulip internal error)', // TODO never implicitly create channel: https://github.com/MaikuB/flutter_local_notifications/issues/2135 tag: conversationKey, color: kZulipBrandColor, - icon: 'zulip_notification', // TODO vary for debug + // TODO vary notification icon for debug + icon: 'zulip_notification', // This name must appear in keep.xml too: https://github.com/zulip/zulip-flutter/issues/528 // TODO(#128) inbox-style // TODO plugin sets PendingIntent.FLAG_UPDATE_CURRENT; is that OK?