Description[Android Download] Show a progress bar before backend is loaded
This CL implements a loading view (aka progress bar) in download manager
UI on Android. It is slightly trickier to handle state changes on
Tablets, because when the download ui is initialized, a filter is
already set in the URL. Therefore we cache the filter temporarily in the
manager, and will show it after we load everything.
There are three possible types of backend the UI needs to wait:
incognito downloads, downloads and offline apges. The UI will only claim
it is loaded if all of them are loaed.
TODO(ianwen): add a timeout mechanisim to either the
DownloadLoadingDelegate or to the backend so that if it takes forever to
load one of the backend, users are still able to see the other two.
BUG=616324
Committed: https://crrev.com/36e2d9412a3ec3dcd7b0efbb2e2ecb8b33c0f728
Cr-Commit-Position: refs/heads/master@{#414369}
Patch Set 1 #
Total comments: 16
Patch Set 2 : comments #Patch Set 3 : rebase #Patch Set 4 : fix tests #
Dependent Patchsets: Messages
Total messages: 20 (10 generated)
|