1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-12-28 19:45:50 +01:00

Hide timestamp from device notifications

This commit is contained in:
Dmitriy Bogdanov 2021-05-14 22:01:32 +04:00 committed by Gitea
parent 436e5b5c70
commit 6f79fc7afa

View File

@ -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);