mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-01-11 01:21:56 +01:00
Hide timestamp from device notifications
This commit is contained in:
parent
436e5b5c70
commit
6f79fc7afa
@ -152,6 +152,7 @@ public class GB {
|
|||||||
.setSmallIcon(connected ? device.getNotificationIconConnected() : device.getNotificationIconDisconnected())
|
.setSmallIcon(connected ? device.getNotificationIconConnected() : device.getNotificationIconDisconnected())
|
||||||
.setContentIntent(getContentIntent(context))
|
.setContentIntent(getContentIntent(context))
|
||||||
.setColor(context.getResources().getColor(R.color.accent))
|
.setColor(context.getResources().getColor(R.color.accent))
|
||||||
|
.setShowWhen(false)
|
||||||
.setOngoing(true);
|
.setOngoing(true);
|
||||||
|
|
||||||
Intent deviceCommunicationServiceIntent = new Intent(context, DeviceCommunicationService.class);
|
Intent deviceCommunicationServiceIntent = new Intent(context, DeviceCommunicationService.class);
|
||||||
@ -187,6 +188,7 @@ public class GB {
|
|||||||
.setSmallIcon(R.drawable.ic_notification_disconnected)
|
.setSmallIcon(R.drawable.ic_notification_disconnected)
|
||||||
.setContentIntent(getContentIntent(context))
|
.setContentIntent(getContentIntent(context))
|
||||||
.setColor(context.getResources().getColor(R.color.accent))
|
.setColor(context.getResources().getColor(R.color.accent))
|
||||||
|
.setShowWhen(false)
|
||||||
.setOngoing(true);
|
.setOngoing(true);
|
||||||
if (GBApplication.getPrefs().getString("last_device_address", null) != null) {
|
if (GBApplication.getPrefs().getString("last_device_address", null) != null) {
|
||||||
Intent deviceCommunicationServiceIntent = new Intent(context, DeviceCommunicationService.class);
|
Intent deviceCommunicationServiceIntent = new Intent(context, DeviceCommunicationService.class);
|
||||||
|
Loading…
Reference in New Issue
Block a user