Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 470ff395 authored by tobias's avatar tobias
Browse files

-fixed notification when timestamps

parent 71a56e54
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -123,7 +123,7 @@ public class NotificationActionUtils
			context.getString(R.string.notification_action_completed), R.string.notification_action_completed, notificationId, taskId, dueDate);
		mBuilder.addAction(NotificationActionIntentService.getCompleteAction(context,
			NotificationActionUtils.getNotificationActionPendingIntent(context, completeAction)));

		mBuilder.setWhen(dueDate);
		mBuilder.setContentIntent(resultPendingIntent);
		notificationManager.notify(notificationId, mBuilder.build());
	}
@@ -149,6 +149,9 @@ public class NotificationActionUtils
		// enable light, sound and vibration
		mBuilder.setDefaults(Notification.DEFAULT_ALL);

		// set notification time
		mBuilder.setWhen(startDate);

		// add actions
		mBuilder.addAction(NotificationActionIntentService.getCompleteAction(context, notificationId, taskId));