Compare commits
1 Commits
rollover-i
...
android-6-
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ec064a2aa0 |
@@ -229,7 +229,7 @@ public class DailyNotificationFetcher {
|
|||||||
content.getTitle(),
|
content.getTitle(),
|
||||||
content.getBody(),
|
content.getBody(),
|
||||||
content.getScheduledTime(),
|
content.getScheduledTime(),
|
||||||
java.time.ZoneId.systemDefault().getId()
|
java.util.TimeZone.getDefault().getID()
|
||||||
);
|
);
|
||||||
entity.priority = mapPriority(content.getPriority());
|
entity.priority = mapPriority(content.getPriority());
|
||||||
try {
|
try {
|
||||||
|
|||||||
@@ -2711,7 +2711,7 @@ object ScheduleHelper {
|
|||||||
config.title ?: "Daily Notification",
|
config.title ?: "Daily Notification",
|
||||||
config.body ?: "",
|
config.body ?: "",
|
||||||
nextRunTime,
|
nextRunTime,
|
||||||
java.time.ZoneId.systemDefault().id
|
java.util.TimeZone.getDefault().id
|
||||||
)
|
)
|
||||||
entity.soundEnabled = config.sound ?: true
|
entity.soundEnabled = config.sound ?: true
|
||||||
entity.vibrationEnabled = config.vibration ?: true
|
entity.vibrationEnabled = config.vibration ?: true
|
||||||
|
|||||||
@@ -740,7 +740,7 @@ public class DailyNotificationWorker extends Worker {
|
|||||||
content.getTitle(),
|
content.getTitle(),
|
||||||
content.getBody(),
|
content.getBody(),
|
||||||
content.getScheduledTime(),
|
content.getScheduledTime(),
|
||||||
java.time.ZoneId.systemDefault().getId()
|
java.util.TimeZone.getDefault().getID()
|
||||||
);
|
);
|
||||||
entity.priority = mapPriorityToInt(content.getPriority());
|
entity.priority = mapPriorityToInt(content.getPriority());
|
||||||
try {
|
try {
|
||||||
|
|||||||
@@ -211,7 +211,7 @@ class FetchWorker(
|
|||||||
title,
|
title,
|
||||||
body,
|
body,
|
||||||
notificationTime,
|
notificationTime,
|
||||||
java.time.ZoneId.systemDefault().id
|
java.util.TimeZone.getDefault().id
|
||||||
)
|
)
|
||||||
entity.priority = 0 // default priority
|
entity.priority = 0 // default priority
|
||||||
entity.vibrationEnabled = true
|
entity.vibrationEnabled = true
|
||||||
|
|||||||
@@ -257,7 +257,7 @@ class NotifyReceiver : BroadcastReceiver() {
|
|||||||
config.title,
|
config.title,
|
||||||
config.body ?: (if (contentCache != null) String(contentCache.payload) else ""),
|
config.body ?: (if (contentCache != null) String(contentCache.payload) else ""),
|
||||||
triggerAtMillis,
|
triggerAtMillis,
|
||||||
java.time.ZoneId.systemDefault().id
|
java.util.TimeZone.getDefault().id
|
||||||
)
|
)
|
||||||
entity.priority = when (config.priority) {
|
entity.priority = when (config.priority) {
|
||||||
"high", "max" -> 2
|
"high", "max" -> 2
|
||||||
|
|||||||
@@ -273,7 +273,7 @@ class ReactivationManager(private val context: Context) {
|
|||||||
"Daily Notification",
|
"Daily Notification",
|
||||||
"Your daily update is ready",
|
"Your daily update is ready",
|
||||||
scheduledTime,
|
scheduledTime,
|
||||||
java.time.ZoneId.systemDefault().id
|
java.util.TimeZone.getDefault().id
|
||||||
)
|
)
|
||||||
notification.deliveryStatus = "missed"
|
notification.deliveryStatus = "missed"
|
||||||
notification.lastDeliveryAttempt = System.currentTimeMillis()
|
notification.lastDeliveryAttempt = System.currentTimeMillis()
|
||||||
@@ -1043,7 +1043,7 @@ class ReactivationManager(private val context: Context) {
|
|||||||
"Daily Notification",
|
"Daily Notification",
|
||||||
"Your daily update is ready",
|
"Your daily update is ready",
|
||||||
scheduledTime,
|
scheduledTime,
|
||||||
java.time.ZoneId.systemDefault().id
|
java.util.TimeZone.getDefault().id
|
||||||
)
|
)
|
||||||
notification.deliveryStatus = "missed"
|
notification.deliveryStatus = "missed"
|
||||||
notification.lastDeliveryAttempt = System.currentTimeMillis()
|
notification.lastDeliveryAttempt = System.currentTimeMillis()
|
||||||
|
|||||||
Reference in New Issue
Block a user