Skip to content

Commit

Permalink
SyncWorker is not long-running
Browse files Browse the repository at this point in the history
  • Loading branch information
rfc2822 committed Feb 21, 2024
1 parent 6f38dfa commit 90feb48
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,8 @@ import java.util.logging.Level
* this worker.
*
* Expedited: when run manually
*
* Long-running: yes (sync make take long when a lot of data is transferred over a slow connection/server).
* Needs a foreground service, whose launch from background is restricted since Android 12. So this will only
* work when the app is in foreground or battery optimizations are turned off.
*
* Long-running: no
*/
@HiltWorker
class SyncWorker @AssistedInject constructor(
Expand Down

0 comments on commit 90feb48

Please sign in to comment.