Skip to content

Conversation

@BillCarsonFr
Copy link
Member

Fixes #2055
Fixes #1920
Fixes #1915

image

image

This PR add backs the fdroid sync modes that were available in the former app.

It offers 3 modes:

  • Optimized for battery : In this mode background syncs are scheduled via Workers, meaning that the system will have control on the periodicity of syncs when battery is low or when the phone is idle (sync will occcur in allowed maintenance windows). After completion the sync work will schedule another one.

  • Optimized for Real Time : This mode requires the app to be exempted from battery optimization. Alarms will be launched and will wake up the app in order to perform the background sync as a foreground service. After completion the service will schedule another alarm

  • No background syncs : The app won't sync in background

@BillCarsonFr BillCarsonFr requested a review from bmarty September 9, 2020 09:46
}
}

override fun getView(position: Int, convertView: View?, parent: ViewGroup): View {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For a list view of 3 static items, it's really too much code...

@DoM1niC
Copy link

DoM1niC commented Sep 9, 2020

Yeah Notification Bug is now fixed by this :) <3 THX @BillCarsonFr

@bmarty bmarty force-pushed the feature/polling_work branch from 83e70d4 to f4c4e84 Compare September 10, 2020 15:13
@bmarty bmarty force-pushed the feature/polling_work branch from 8d24625 to e997610 Compare September 11, 2020 08:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[META] Improve F-Droid Notification Stop background sync when network connection is lost [F-Droid] Excessive offline battery usage

4 participants