Closed devvv4ever closed 2 months ago
I would certainly love to see this added. Particularly something like the upper widget example (understanding that it will likely be different than the idea pictured)!
I suggest using Glance to keep in line with our new line using Compose: https://developer.android.com/jetpack/compose/glance/create-app-widget
@rfc2822 @sunkup @ArnyminerZ we should discuss this next week. It becomes important since background sync is really a problem now for some users (since we lost the foreground sync notification) and we should try if it gets better when they place a widget.
+1 for the widget, but…
It becomes important since background sync is really a problem now for some users
Can we please track every case in https://github.com/bitfireAT/davx5/issues/520? Especially which DAVx5 version, manufacturer, firmware, accounts, settings … so that we can one day maybe find a pattern.
I suggest using Glance to keep in line with our new line using Compose: https://developer.android.com/jetpack/compose/glance/create-app-widget
@ArnyminerZ would you like to give it a try with Glance :) ? I think we should go with a very simple "SyncNow" Button. Nothing else (we can provide more info later on if we want). So we could get that out in the next version and possibly improve it later on.
Do we need an additional setting for "widget preferences" for this in the DAVx5 side drawer settings?
I'd love to work on this 😄 It's been a while since I used Glance, I think I only ever used the first alpha, so it will be fun to see what they have comed up with.
I'll keep this thread updated if anything has to be added to the "main UI", even though I don't think it will be necessary.
Placing a widget will have the benefit that Android keeps the app more in foreground, hopefully resulting in less restrictive background killing/stalling/delaying of the sync process.
This is a first proposal. We don't want a high-end widget, just a simple one with minimal functionality. Users should be able to: