-
-
Notifications
You must be signed in to change notification settings - Fork 443
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Macgills/2.5 downloader #1170
Macgills/2.5 downloader #1170
Conversation
…ewHolder, BooksAdapter, LibraryFragment
…proved. Guava & apache commons removed
…ncelled outside application. Use transaction to mediate refresh rate of observables
…removal. Fix library stream breaking on error
…eakcanary to fix crash" This reverts commit 6e33ae2.
…and cannot be included. Remove multidex again
…or annotationProcesing. Raise MinSDK. Add timeouts to network requests.
…k old dbs deprecated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few issues:
The library top bar is too high on my s8 so it almost clips the top
The download only over wifi option doesn't seem to do anything. It doesn't work anymore.
You can't pause downloads anymore. (What if a user is downloading a very large file)
Downloads don't seem to be in parallel and you can't see total progress (I guess this is fine)
Am I right in concluding that you now can't download large files onto fat32 formatted systems. If so then how are we communicating this?
…les, drop unused table
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me, but I haven't had a huge amount of time to debug on a device and check for all the edge cases.
Fixes #263 #597 #343 #340 #658 #668 #712 #703 #826 #830 #883 #889 #933 #907 #988 #975 #987 #990 #1007 #860
Changes: A new Downloader utilising Android's built-in DownloadManager was created, to facilitate this a total rewrite of ZimManageActivity, ZimFileSelectFragment, DownloadFragment and LibraryFragment was necessary. The new construction of these screens is that they all observe LiveData objects in the ZimManageViewModel which is a shared object that survives through configuration changes.
Internal subscriptions of the ViewModel keep the client data fresh and ready for binding, some updates can be triggered by pushing onto one of the ViewModel's inputs, named here as request* and implemented as reactive Processors.