From b472c7283f154cc92702cbd84c93ab4818023564 Mon Sep 17 00:00:00 2001 From: Revertron <105154+Revertron@users.noreply.github.com> Date: Sat, 19 Nov 2022 22:53:01 +0100 Subject: [PATCH] Made better collapsed notification with status. (#34) --- .../main/java/eu/neilalexander/yggdrasil/GlobalApplication.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/neilalexander/yggdrasil/GlobalApplication.kt b/app/src/main/java/eu/neilalexander/yggdrasil/GlobalApplication.kt index f5e247e..341cd99 100644 --- a/app/src/main/java/eu/neilalexander/yggdrasil/GlobalApplication.kt +++ b/app/src/main/java/eu/neilalexander/yggdrasil/GlobalApplication.kt @@ -91,8 +91,8 @@ fun createServiceNotification(context: Context, state: State): Notification { } return NotificationCompat.Builder(context, channelId) - .setContentTitle(context.getText(R.string.app_name)) - .setContentText(text) + .setShowWhen(false) + .setContentTitle(text) .setSmallIcon(R.drawable.ic_tile_icon) .setContentIntent(pendingIntent) .setPriority(NotificationCompat.PRIORITY_MIN)