From 6f79fc7afae8dc26bcdab8be85dd681a0c6058d1 Mon Sep 17 00:00:00 2001 From: Dmitriy Bogdanov Date: Fri, 14 May 2021 22:01:32 +0400 Subject: [PATCH] Hide timestamp from device notifications --- .../main/java/nodomain/freeyourgadget/gadgetbridge/util/GB.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/util/GB.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/util/GB.java index 418d4a98b..5bc9b1fc3 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/util/GB.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/util/GB.java @@ -152,6 +152,7 @@ public class GB { .setSmallIcon(connected ? device.getNotificationIconConnected() : device.getNotificationIconDisconnected()) .setContentIntent(getContentIntent(context)) .setColor(context.getResources().getColor(R.color.accent)) + .setShowWhen(false) .setOngoing(true); Intent deviceCommunicationServiceIntent = new Intent(context, DeviceCommunicationService.class); @@ -187,6 +188,7 @@ public class GB { .setSmallIcon(R.drawable.ic_notification_disconnected) .setContentIntent(getContentIntent(context)) .setColor(context.getResources().getColor(R.color.accent)) + .setShowWhen(false) .setOngoing(true); if (GBApplication.getPrefs().getString("last_device_address", null) != null) { Intent deviceCommunicationServiceIntent = new Intent(context, DeviceCommunicationService.class);