History log of /frameworks/base/packages/DocumentsUI/src/com/android/documentsui/RootsLoader.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
46de7b50243d3896fe97d1ee7a00258085cea1ca 23-Oct-2013 Jeff Sharkey <jsharkey@android.com> Update roots when data cleared, refresh UI.

Data cleared usually means accounts went away, so kick off roots
refresh. Also update any visible UI after a refresh finishes.

Bug: 10899793
Change-Id: Id68c80b5e635e358cfd75f4961ce13cd1c7c5f82
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/RootsLoader.java
a9ce049db87259e302e2368d2a4a1c11a94fd831 20-Sep-2013 Jeff Sharkey <jsharkey@android.com> Load RootInfo in background, invalidation.

Move all RootInfo queries to background threads to avoid janking
the UI. Update passes happen on spawed task, which swaps out updated
cache results when finished. Support partial updates when only a
single package/authority has changed. Watch for change notifications
for roots, since flags can change over time.

Ignore stopped packages when in background, but query them for roots
when launching any picker UI.

Optimize management launches by treating as one-shot requests that
don't need to wait for all RootInfo.

Bug: 10600454, 10745490
Change-Id: Ibc7b15688ef6b41bd7e9dd0d7564b501e60e49a9
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/RootsLoader.java