Yuito-app-android/app/src/main/java/com/keylesspalace/tusky/receiver
Nik Clayton 4025ab35ff
Move cache pruning to a WorkManager worker (#3649)
- Extend what was `NotificationWorkerFactory` to `WorkerFactory`. This
  can construct arbitrary Workers as long as they provide their own
  Factory for construction.

  The per-Worker factory contains any injected components just for that
  worker type, keeping `WorkerFactory` clean.

- Move `NotificationWorkerFactory` to the new model.

- Implement `PruneCacheWorker`, and remove the code from
 `CachedTimelineViewModel`.

- Create the periodic worker in `TuskyApplication`, ensuring that the
  database is only pruned when the device is idle.
2023-06-11 13:17:30 +02:00
..
NotificationBlockStateBroadcastReceiver.kt Push notifications support via UnifiedPush (#2303) 2022-05-17 19:32:09 +02:00
SendStatusBroadcastReceiver.kt update ktlint plugin to 11.3.1, format code (#3442) 2023-03-13 13:16:39 +01:00
UnifiedPushBroadcastReceiver.kt Move cache pruning to a WorkManager worker (#3649) 2023-06-11 13:17:30 +02:00