style: fix indentation in DailyNotificationWorker and AndroidManifest
- Normalize indentation in DailyNotificationWorker.java - Normalize indentation in AndroidManifest.xml
This commit is contained in:
@@ -161,24 +161,24 @@ public class DailyNotificationWorker extends Worker {
|
|||||||
Log.d(TAG, "DN|DISPLAY_STATIC_REMINDER id=" + notificationId + " title=" + title);
|
Log.d(TAG, "DN|DISPLAY_STATIC_REMINDER id=" + notificationId + " title=" + title);
|
||||||
} else {
|
} else {
|
||||||
// Regular notification: load from storage
|
// Regular notification: load from storage
|
||||||
// Prefer Room storage; fallback to legacy SharedPreferences storage
|
// Prefer Room storage; fallback to legacy SharedPreferences storage
|
||||||
content = getContentFromRoomOrLegacy(notificationId);
|
content = getContentFromRoomOrLegacy(notificationId);
|
||||||
|
|
||||||
if (content == null) {
|
if (content == null) {
|
||||||
// Content not found - likely removed during deduplication or cleanup
|
// Content not found - likely removed during deduplication or cleanup
|
||||||
// Return success instead of failure to prevent retries for intentionally removed notifications
|
// Return success instead of failure to prevent retries for intentionally removed notifications
|
||||||
Log.w(TAG, "DN|DISPLAY_SKIP content_not_found id=" + notificationId + " (likely removed during deduplication)");
|
Log.w(TAG, "DN|DISPLAY_SKIP content_not_found id=" + notificationId + " (likely removed during deduplication)");
|
||||||
return Result.success(); // Success prevents retry loops for removed notifications
|
return Result.success(); // Success prevents retry loops for removed notifications
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check if notification is ready to display
|
// Check if notification is ready to display
|
||||||
if (!content.isReadyToDisplay()) {
|
if (!content.isReadyToDisplay()) {
|
||||||
Log.d(TAG, "DN|DISPLAY_SKIP not_ready id=" + notificationId);
|
Log.d(TAG, "DN|DISPLAY_SKIP not_ready id=" + notificationId);
|
||||||
return Result.success();
|
return Result.success();
|
||||||
}
|
}
|
||||||
|
|
||||||
// JIT Freshness Re-check (Soft TTL) - skip for static reminders
|
// JIT Freshness Re-check (Soft TTL) - skip for static reminders
|
||||||
content = performJITFreshnessCheck(content);
|
content = performJITFreshnessCheck(content);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Display the notification
|
// Display the notification
|
||||||
|
|||||||
Reference in New Issue
Block a user