io7m / android

The Android client for Library Simplified
Other
0 stars 0 forks source link

Publish book states instantly #31

Open io7m opened 6 years ago

io7m commented 6 years ago

Right now if a book operation (borrowing, for example) is in progress, clicking another book button in the UI will enqueue an operation but this won't be reflected in the UI right away. The reason for this is that state changes are published when the background task starts, and the task may not start for a while if another task is already in progress.

Easy fix: Publish book state changes to the registry immediately (such as setting the state of a book to "download requested") and then let the background tasks update those states when the tasks start running.