A grab bag also with:
Report Roots while loading (in DEBUG).
Null check DirectoryFragment before calling methods on it.
Bug:26936660,26143397
Change-Id: Ief2c943eb24fb14349bbd9cc4a5fbd670f57d567
- Pull key handling code out of the MultiSelectManager.
- Tighten up the semantics around range selection:
- Create an API on MultiSelectManager for handling multi-select.
- Make the range selection more opinionated (e.g. more state checks),
to simplify the design and code.
BUG=25195767
Change-Id: I4bbe446ed3059150499db3d28e581b2e68405266
A variety of related fixes:
- don't force size enable when browsing from device mounted notifications.
- don't show settings menu item as action (put in overflow).
- add sd card icon (not quite yet used, need to suss that out).
Bug:26880985,26883578,26771127
Change-Id: I36f153c42217f8092f157ded2a756c02525593ab
- Add helper class for the Ui tests. It creates basic test environment.
It is intermediate layer between UiBot/DocumentsProviderHelper and UiTest classes.
- Refactor SearchView tests
- Add renaming support in the test DocumentsProvider
- Add renaming tests
Bug=26799799
Change-Id: I2849913a1addabff0087bb06b80f36de7cb144f3
Update the selection to remove IDs that no longer exist, but don't clear
it - doing so causes the selection to vanish whenever the underlying
directory contents change, which is disruptive to the user.
BUG=22765812
Change-Id: Ice6ae54d0748cf842addf1342541ae7759435811
This is a quickie change where we clear the cache, but I think there could be
a better behavior where we don't clear the cache, show low res (instantly)
then load higher resolution ontop of the low res.
Bug: 26763078
Change-Id: If9883d507984b555e790a06692390d4fa3334c28
Check for null URIs when logging metrics for DocsUI launches. This
prevents a NPE caused if DocsUI is started by an intent with a null URI.
BUG=26848462
Change-Id: Iea02488581f582f60eabf61deec1e89c13449d78
Log to two new histograms - one for operations originating from system
providers, the other for operations originating from external providers.
Events in these histograms are bucketed by
- type (copy, move, delete, etc)
- destination (system vs external provider, with a special bucket for
intra-provider operations)
- result (success vs failure)
BUG=26737132
Change-Id: Ic24c7a22fa3c1227e23cfbd42ae80ca1f70a19ba
Now stored in local prefs, not recents DB.
Don't consult preferences for recents from DocumentsActivity.
Bug: 22671255 26689962 26411301
Change-Id: I492d85c450253bce984c929a6dd15d7c31ee6a0b