Closed ignoramous closed 3 years ago
See also #252
Fixed the blocklist issue of both the local and remote in v053d. Closing the issue and will open a new issue for further improvements. see #256
How was it fixed? What was the root cause? Commit?
Local blocklist fix: Logic of handling the local blocklist download is modified as part of v053c release. Now the app uses work manager to monitor the status of the download instead of broadcast listeners. 454107af44cca0f8f4eacda3b30bec3f5d3932e8, #220
Remote blocklist fix: The download of filetag.json is initiated when the user clicks on Configure button. As per previous code, if the user exits the webview activity before the file is downloaded, the value for the download time(remote) in persistence state is updated without downloading the file. With the current implementation, unless the file is downloaded(STATUS SUCCESSFUL received from broadcast receiver), the download time will not be updated. In case of download failure, the download will be initiated next time. persistanceState.tempRemoteBlockListDownloadTime & persistentState.remoteBlockListDownloadTime.
As part of changes to downloads in v053b, it looks like we may have broken something drastically.