History log of /frameworks/base/packages/DocumentsUI/src/com/android/documentsui/FilesActivity.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
ab58b5a3ddb7f0c477380e6bd91982e28a220d12 13-Dec-2016 Ben Lin <linben@google.com> DO NOT MERGE Using Activity#setTitle to have TalkBack announce root
traversal.

Bug: 32260739
Bug: 28275570
Change-Id: Ie3711e8ccbf588838a3f21346f317243516382bd
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/FilesActivity.java
98e58262d28f487304b5154fba94835b768a40e6 13-Dec-2016 Ben Lin <linben@google.com> DO NOT MERGE ANYWHERE Revert "Using Activity#setTitle to have TalkBack announce root traversal."

This reverts commit 4c80659e99b182492a4719560180079d23c1b338.

Change-Id: Id5fa68f37170e61e2e63fdb3a60e8a3db79c81fa
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/FilesActivity.java
4c80659e99b182492a4719560180079d23c1b338 18-Nov-2016 Ben Lin <linben@google.com> DO NOT MERGE ANYWHERE

Using Activity#setTitle to have TalkBack announce root traversal.

Bug: 32260739
Bug: 28275570
Change-Id: I3b2b7c017d0c899fbccc8bc9b92453e715329317
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/FilesActivity.java
b40d2cd0b3f4a52a7af862f0e2e6449e8a96c36d 08-Sep-2016 Steve McKay <smckay@google.com> DO NOT MERGE: Accurately emulate historic Downloads ACTION_VIEW behavior.
am: 3f5885918b

Change-Id: Ibe8c67367649ecc5a229b86592257b976ba2411d
3f5885918b60824d98386f9c31b7dd189b7f426c 03-Sep-2016 Steve McKay <smckay@google.com> DO NOT MERGE: Accurately emulate historic Downloads ACTION_VIEW behavior.

Add write permision to VIEW intent (don't regress bahavior).
Add (already known) mimetype when creating intent.

Test: Download a CSV file to Downloads *root*.
Install Sheets from play store.
Navigate to Settings > Storage > Explore > (device name) > Download
Tap CSV file.
It should open.

NOTE: This is a (manual) cherrypick from master. Manual part necessary
as DocumentsUI has moved to a new repo in master.
https://googleplex-android.googlesource.com/platform/frameworks/base/+/a4e765f16e3c0031343af55df65380df44672825

Bug: 31245151
Change-Id: Ic64c655d33182e559f9645c1e173b2fe4b601d6c
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/FilesActivity.java
a11d02477e7e1f734927911c3f40efb65945dda7 10-Aug-2016 Felipe Leme <felipeal@google.com> DO NOT MERGE ANYWHERE

(cherrpy pick of commit cc8fcf2efd66afdaa900b4d27e1eb784e8d40752).

Don't open drawer when back is pressed after being launched externally.

Change-Id: I3e8afd68c33b519dd5d6b27e3fa94653c2537612
Fixes: 30743235
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/FilesActivity.java
3c6d499858d42cf3007ceaf029068cc7cdc05b8d 31-May-2016 Steve McKay <smckay@google.com> Don't assert on uris with stack.

This is legal arrangement when viewing Archives.
Bug: 28923366

Change-Id: I75a26edc8dac865f536a7c5bcdef1ba00b0883f0
(cherry picked from commit a379fad3b9b9e708e9211f7c026ddd13572fc16e)
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/FilesActivity.java
f570c771f23792837fb63f708bfa5c948d5fcad7 11-May-2016 Steve McKay <smckay@google.com> Don't show new-window item in Downloads per Gabe.

Also, fix regression...don't show "internal storage" option in Downloads.
All other modes, fix inconsistencies in presentation of
internal-storage/new-windows commands by eliminating launch mode inference.
Update VolumeInfo and MTP provider to send correct launch mode extra.

Bug: 28691735,28695347
Change-Id: Ic480925f4c8f1beee4da104a2259c1ce5f28a6a1
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/FilesActivity.java
c58e5619d32a6d3351248de31e102eb37f8c61fd 11-Apr-2016 Tomasz Mikolajewski <mtomasz@google.com> Merge "Fix opening archives in Downloads." into nyc-dev
43df577ac46e36f21da3797d6f31a5ae6fa58c9f 07-Apr-2016 Aga Wronska <agawronska@google.com> Consolidate user actions metrics into one histogram.

Bug: 27301081
Change-Id: Ib2ac46dd268e492c576bc082dc349c4a6826897f
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/FilesActivity.java
8fa99701491dee0ac18b8707e32252cb3c621af1 07-Apr-2016 Tomasz Mikolajewski <mtomasz@google.com> Fix opening archives in Downloads.

When opening an archive in Downloads we first want to use
the ACTION_MANAGE_DOCUMENT intent, as it's a file on Downloads.

However, for files within archives we don't want call this intent,
as ACTION_MANAGE_DOCUMENT does not support files in archives.

Finally, we actually need to call ACTION_MANAGE_DOCUMENT for
archive files on Downloads, to give third party apps a chance
to show up in the Intent choose (invoked by the Trampoline).

This CL makes things work as they worked before merging
DownloadsActivity with DocumentsActivity.

Bug: 28033554
Change-Id: I287759aa8fc0457341ce6ece07d5c2ccf36f2c8c
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/FilesActivity.java
3855e9ce494fcbd27291f0ea5872d00daf10d3f2 06-Apr-2016 Steve McKay <smckay@google.com> Merge "Massage code to better support Files overlay." into nyc-dev
53f109b39e2b62fa3730ce1c43344df2c733251c 05-Apr-2016 Steve McKay <smckay@google.com> Massage code to better support Files overlay.

Also, allow "productivity_mode" config to be enabled via intent extra
as a developement aide.

Bug: 28006206
Change-Id: I7be8d96a0e924f9ce8023347e051d28d69a0eec9
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/FilesActivity.java
d42a9bed9326fa596c28bf4c8b7690d12e6f10dc 04-Apr-2016 Aga Wronska <agawronska@google.com> Make Metrics.logKeyboardAction() method take @KeyboardAction type
instead of KeyEvent

Change-Id: Ib9a19532612b679141b6d611e448247d3b0bab23

Fixing: b/27942360
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/FilesActivity.java
0614c16b5e12d80f233d8a1d87184d4b0b7ae7e7 01-Apr-2016 Aga Wronska <agawronska@google.com> Add metrics for keyboard shortcuts

Change-Id: I3a63efd856f25cc33d61b734970675b77645a26d
Fixed: 27942360
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/FilesActivity.java
cf966ae5b5647e1a24bfb0220ed0dea5edd87ae8 30-Mar-2016 Aga Wronska <agawronska@google.com> Add metrics for menu actions

Change-Id: Ic20802730e6068cfe49c277c3378c15ee0ba09fe
Fixed: 27921699
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/FilesActivity.java
933076d80561751618f462b26309ce9e4c3ff3bf 30-Mar-2016 Andrii Kulian <akulian@google.com> Refactor usages of Picture In Picture and Multi Window (1/4)

Bug: 27365860
Change-Id: I1590e430a12ceb84cb83da295e0bf7e4378fea96
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/FilesActivity.java
b09985639fd116a133cb0ec27abc6975b11b2eb6 25-Mar-2016 Aga Wronska <agawronska@google.com> Add full bar mode for search view on small devices

Fixed: 27406434

Change-Id: I828ff72752cdb35dff453ea405209f169e550c1a
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/FilesActivity.java
96e30eba1eaed0e35d6b8cfcd504aed5475556d8 24-Mar-2016 Aga Wronska <agawronska@google.com> Make pressing 'Back' button open the drawer when in Recents root

Change-Id: I3c6cbcd3d2d003af1a6459c3bfd193ee45021882
Fixed: 27230999
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/FilesActivity.java
a1b13556331136e5e79d0fe545c8bfbb7a394fce 23-Mar-2016 Aga Wronska <agawronska@google.com> Merge "Change copy/move destination to Downloads when home directory is hidden." into nyc-dev
4e627169041376b25fc5d9d62de0eccfa61b2913 22-Mar-2016 Aga Wronska <agawronska@google.com> Change copy/move destination to Downloads when home directory is hidden.

Bug: 27791217
Change-Id: If196441a57053ada9875c6cc29d4c7f13fcb57e8
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/FilesActivity.java
ffa829f779d7513c64bba76cc884c62b702f52dd 22-Mar-2016 Ben Kwa <kenobi@google.com> DocsUI: Disable debug logging by default.

Per the platform team, we shouldn't enable debug logging automatically
in debug builds because it increases log-spam. Just disable the flag
and enable it manually when needed.

Add some ifs to make sure all our debug logging is properly removed.

BUG=27380154

Change-Id: I8338f226c07affdb65970c7cb14f1e6aae036934
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/FilesActivity.java
2917fa9dd53ff1643714b42b95556189c727de4b 18-Mar-2016 Daichi Hirono <hirono@google.com> Change the title of DocumentsUI from "Files" to "Downloads".

BUG=27683277

Change-Id: I429cae8804b8f318f58039fc63d081c2a864fad0
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/FilesActivity.java
0a96dae887857fc06f997b17152df9580fdcb9ac 12-Mar-2016 Steve McKay <smckay@google.com> Merge "Run all downloads through trampoline." into nyc-dev
3e63e7de2378055857c329e80862a11d947852c4 11-Mar-2016 Steve McKay <smckay@google.com> Run all downloads through trampoline.

This guarantees the retry/delete support in the downloads
trampoline can do its thing.
Allow APKs not in downloads to go directly to pakcage
manager via VIEW intent.
Add test coverage for retry dialog.

Bug: 27539337

Change-Id: I75c5db8915e24a7648c7990136d39ed86d407637
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/FilesActivity.java
ce71082254b6015ff6475374bc4d0001608b7636 11-Mar-2016 Steve McKay <smckay@google.com> Centralize animation related resources.

Fix minor bug in animation (use height not width).

Change-Id: I357224086b2732fe9ad49a145db3e82259a87891
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/FilesActivity.java
6ce903d7b777ff5b668122a65d10da1d7d04373d 10-Mar-2016 Steve McKay <smckay@google.com> Delete downloads activity.

Delete "MANAGE_ROOT" activity.
Add intent filter for "BROWSE_DOWNLOADS".
Open by default on Downloads directory.

Bug: 27563427
Change-Id: I1f85dc17a0bc94b439a272847e4ab3bb347ead23
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/FilesActivity.java
9bb98f3121e7efa2b232613f89bef99a80d07269 07-Mar-2016 Steve McKay <smckay@google.com> Send APKs through safe install path.

Basically push them through downloads.ui TrampolineActivity
to get origin url and referer and other security bits
added before handing off to package manager.

Bug: 24676446
Change-Id: Id40787ada6ace424c4e5e4bfeedc0a8005b7a734
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/FilesActivity.java
a1f7680f535a30aa816d129c072870031c8a2eb6 25-Feb-2016 Steve McKay <smckay@google.com> Update preconditions to be asserts...

Which are now supported by Jack.
Retain a few preconditions checks that enforce contract.
Disable the one assert we had...because it failed in tests.

Change-Id: I2f6cb01e1af1534be4428ce4a3ee625a163dd163
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/FilesActivity.java
c95d87c98360e4254c55272c79f0f9a05215aaf6 23-Feb-2016 Steve McKay <smckay@google.com> Don't restore stack when picking copy destination.

Move fancy drawer "fiddling" to FilesActivity.
Rename the various "Restore" tasks to better reflect their roles.

Change-Id: I7f5c3dee11112bf0a31e6219d09c572c5651629d
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/FilesActivity.java
cddd034ca78fd92be132cb2336eb2bff04ac5ce8 22-Feb-2016 Steve McKay <smckay@google.com> Merge "Move directory and roots support to own ui bots." into nyc-dev
b9a20d10c948cf111b70981e08233ea97323fe6c 19-Feb-2016 Steve McKay <smckay@google.com> Move directory and roots support to own ui bots.

Also...sorry, snowball, don't automatically open folders
that are created in Files app. Only do this in DocumentsActivity.

Change-Id: I271655fd3566496eced4aaa7a44d5110233150a0
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/FilesActivity.java
893390bd580eca39ecd693cb0d76c7bc9b36a11d 17-Feb-2016 Aga Wronska <agawronska@google.com> Directory fragment refactoring.
First attempt to to refactor fragments handling, state and app lifecycle.

The goal was to simplify code by using android built lifecycle
mechanism, eliminate bugs caused by multiple creation of the fragment,
see the performance impact and give some fundament for refactoring of
fragments and activities in the app.

Search view manager:
* Remove curentSearch from state
* Restore search from saved state (ex. after rotation)
* Rename file to give the better overview of its purpose

Directory fragment:
* Store selection state in a bundle
* Remove double creation of fragment
* Use loaders to reload content when possible
* Keep info about state inside the object
* Refactor available types of fragment to be normal and recents
* Make search type a mode possibly available in all types
* Remove search being invoked from refresh method
* Do search by reloading fragments content instead of recreation as
an example

Other:
* Fix window title maybe

Bug: 26968405, 27101786
Change-Id: I58f36cd0a3e3a6ec98996cd8aac16e10e425e1fe
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/FilesActivity.java
3d988a969f39ca34ef89c449a0675164499c9a3a 15-Feb-2016 Tomasz Mikolajewski <mtomasz@google.com> Provide siblings in a sorted orders in DocumentsUI.

Bug: 27192158
Change-Id: Idefd2ba3027cd4630fcd2aefade9e6b4952e7125
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/FilesActivity.java
f873769fba261fb26446b5082fddc4ca2724d931 05-Feb-2016 Steve McKay <smckay@google.com> Move create folder and sort to overflow menu, cleanup back behavior.

Improved drawer management in reponse to back button presses:
- if drawer is open (and we didn't just open it), close it.
- if at top of root (and we didn't close root) open it.
- there's a timeout on this behavior such that pressing back
a second time within a 1.5 second perior will NOT initiate
the behaviors described above.

Change-Id: I5990848cd3047d9dc985ec10e57ab3a0f99ce79c
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/FilesActivity.java
95cd85ad3859991c756c8ff9bb683c97b3546eb9 04-Feb-2016 Steve McKay <smckay@google.com> Simplify State initialization w/ better semantics + improved Task security.

Also, reveal the illusion that we're restoring state in Files and Downloads.
Also, define a "PairedTask" class that guards calls to task methods
with checks against isDestroyed. This also let us make all of the tasks
static, so we get much narrower scope and tasks can even be moved to
their own files.

Change-Id: I6a9e8706e1ab1d1f43301e73dd9858a115a6baaf
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/FilesActivity.java
1f264a8a1a6c3e770e45c52fc08dc06de6b1aa55 03-Feb-2016 Steve McKay <smckay@google.com> Normalize toolbar management.

Since it was almost all redundant (especially the stack stuff).
Ensure "Files" title present on drawer title in Files app.
DocumentsToolBar > DocumentsToolbar to match toolkit naming.

Bug: 26193264
Change-Id: I92c82c66d936aae3ce0f792581daa12898dfadee
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/FilesActivity.java
ba7753c941e2e2a9a229e3a4ea1eed9b7bad4f0b 03-Feb-2016 Tomasz Mikolajewski <mtomasz@google.com> Merge "Open zip files nicely from the Download app with Files app."
a6120da1e37a4457bac58f8900bffa795dc8e7cb 27-Jan-2016 Tomasz Mikolajewski <mtomasz@google.com> Open zip files nicely from the Download app with Files app.

Bug: 26321218
Change-Id: I8a7a7e914d290ea1b6f424ee5fbd38a4b09c362d
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/FilesActivity.java
cd270153ff8844f37c2ddc3c3dc1246700f4974c 31-Jan-2016 Tomasz Mikolajewski <mtomasz@google.com> Fix tapping on more than one failure notification.

Bug: 26809248
Change-Id: I4e52b7e7a9e09d57b8a2231a09c9121b5fd19e51
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/FilesActivity.java
3ce95951bd173c422b8d369b4651c28e5bcc20f4 02-Feb-2016 Steve McKay <smckay@google.com> Show view mode button in action bar on Downloads.

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
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/FilesActivity.java
efa1761776160376278fa467ea31d8e3f621a286 30-Jan-2016 Steve McKay <smckay@google.com> Decouple SD card from ADVANCED storage toggle.

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
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/FilesActivity.java
3b93a4d351aeb154fba8a4b2fa66ca25a951993d 30-Jan-2016 Wale Ogunwale <ogunwale@google.com> Renamed Activity class multi-window APIs

As requested by API council.

Bug: 26507736
Change-Id: I2a87c5eb3c1b48d52703103c2a4f72c250a9a827
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/FilesActivity.java
2a25a62739bca2f93aa91fbba698a6de697032b2 30-Jan-2016 Wale Ogunwale <ogunwale@google.com> Renamed FLAG_ACTIVITY_LAUNCH_TO_SIDE to FLAG_ACTIVITY_LAUNCH_ADJACENT

Per feedback from API council.

Bug: 26508215
Change-Id: Id17166fe981587c9c16c382ccbdf0846ed2ae5d6
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/FilesActivity.java
5a2120820a66a52200ad6b330c623bce9bce89b4 29-Jan-2016 Steve McKay <smckay@google.com> Merge "Files always visible, same for new window menu."
a7e923c57c30b72671191c924b9b4ccc9e9fcc40 28-Jan-2016 Steve McKay <smckay@google.com> Create new windows on *other* side in multi-window mode.

Bug:26831180
Change-Id: Ie3fb22847e70cd78998d467a8af9bf20642304e5
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/FilesActivity.java
5fe5c458dc5d2aa009f68a270e546a2cc4d9aa1a 28-Jan-2016 Steve McKay <smckay@google.com> Files always visible, same for new window menu.

Remove "productivity_device" bit.

Change-Id: I28ee3e210fc5f8c367d45a74edab0e04667ddd5e
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/FilesActivity.java
748ea8cc785b6f037518703308ffd3eb2a151c5a 22-Jan-2016 Tomasz Mikolajewski <mtomasz@google.com> Show a warning notification and a dialog in case of conversion when copying.

Change-Id: I451b0944069deb5f0b49b54c514e7761be449e3d
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/FilesActivity.java
3eb2d07fd3ef67e54d5004fb6bff931b1b7b44c9 26-Jan-2016 Steve McKay <smckay@google.com> Remember view mode by root.

Now stored in local prefs, not recents DB.
Don't consult preferences for recents from DocumentsActivity.

Bug: 22671255 26689962 26411301
Change-Id: I492d85c450253bce984c929a6dd15d7c31ee6a0b
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/FilesActivity.java
723799858a15fa316128716d9e131a681d1a51d2 26-Jan-2016 Ben Kwa <kenobi@google.com> Add MetricsLogger calls to DocumentsUI.

- Create new categories in MetricsLogger for DocumentsUI events.
- Add logging code to DocumentsUI for launch events and viewing roots.

BUG=26737132

Change-Id: Ib703878a39dd03b57e68a4d5a1d6cf8fe2936c5a
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/FilesActivity.java
f6a31d319f3e08d26ca4c0fbfb5803056bafb243 16-Jan-2016 Aga Wronska <agawronska@google.com> Refactor SearchManager:

- Move SearchManager out of BaseActivity.
- Refactor usage of onCurrentDirectoryChanged(int anim).
- Cancel search when directory changes.
- Enable testing for cancelling search when directory changes.
- Avoid recreating action bar when only the content of the directory is
changed.

BUG=26495573

Change-Id: I1400090fcb529ad3905018d1640fdb7416542989
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/FilesActivity.java
14e827a958f713d9cdec550e0b1099622cda9479 07-Jan-2016 Steve McKay <smckay@google.com> CopyService generalization.

Make the service operation agnostic, so we can also move delete operations to it.
In a followup change we'll see about adding support for multiple concurrent
operations. We'll need to evaluate how to do this in IntentService (which
serializes requests....a major limitation).

Change-Id: I03eca9c1ecaba519af42d88edffeb0dce78bd1da
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/FilesActivity.java
aa684454f8e55fdba7829c7177799c0e8237d208 25-Dec-2015 Tomasz Mikolajewski <mtomasz@google.com> Prevent double recreation of the failure dialog in DocumentsUI.

DialogFragment takes care of recreation on configuration change, so no
need to recreate it manually.

Bug: 26322214
Change-Id: I7c50a1c5bb1ba9fab34f6e8d31ed1e23e7edfbb7
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/FilesActivity.java
862b9641e39997f5189dadf0f0c6776f911f344e 07-Dec-2015 Ben Kwa <kenobi@google.com> Re-enable sorting in the DirectoryFragment.

- Move sorting from the back-end (using SortingCursorWrapper) to the the
front-end (in DocumentsAdapter). This makes it such that re-sorting
the directory contents doesn't necessitate a reload.
- Update DirectoryLoaders to just return unsorted results, and rely on
the UI to sort them.
- Remove the (now-unused) SortingCursorWrapper.
- Update Model tests to test sorting.

BUG=26024369

Change-Id: I871cc0e496267d381ae546e0309125d04649415a
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/FilesActivity.java
b67bfbf975a453a67300f24fac6e4687a676a378 09-Dec-2015 Steve McKay <smckay@google.com> Load Home directory by default.

Don't update toolbar before first root load.
This was causing Recents > Home flicker due
to Recents being the default root returned from getCurrentRoot.
Revert change causing regression in selection highlight.

Bug: 26093756
Change-Id: I2c555aa38d68e9bf7962b1407f9fc75c800216a6
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/FilesActivity.java
39acff5a36ab0540981cdae3027ea1a45fe040e5 25-Nov-2015 Tomasz Mikolajewski <mtomasz@google.com> Wire support for archives to DocumentsUI.

Bug: 20176812
Change-Id: I8220afa2f53b07aa842bf6ac24fcc62afd4e2617
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/FilesActivity.java
8fd086a18d9c71590a66a86d91b7f7471621a08f 04-Dec-2015 Steve McKay <smckay@google.com> Fix broken copy after recent copy related chagnes.

Also, add a label to Downloads app, and enabled drag and drop by default.
Cleanued up menu handling in BaseActivity (use switch statement).

Bug: 26033335
Change-Id: I3cef89a4a9f9e30b4e926411e94cf06bc2dc0f8d
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/FilesActivity.java
261b6bdd36ab2b820f1646b3eaa5f4a3123a7bcf 04-Nov-2015 Tomasz Mikolajewski <mtomasz@google.com> Remove TRANSFER_MODE_NONE from CopyManager.

This field is not necessary, as an operation is always either copy or move.

Change-Id: Ide68bb2bf5d237ed4c9abe8c443edd8e12dd82dd
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/FilesActivity.java
f862155e3476f8d9644d57072a6d92375bde628e 04-Nov-2015 Steve McKay <smckay@google.com> Move DirectoryFragment and family to dirlist pkg.

Stuff was getting out of control in the main package.

Change-Id: Ia06ba96f5bbe13388d51e6ad52a9dac76af97cc0
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/FilesActivity.java
1eafb666c24736be4454c199a62c256c55e86bc4 23-Oct-2015 Steve McKay <smckay@google.com> Address followup comments from 793838.

Change-Id: Ie77112ea38796f970a8f688c1c94aeb05f46ab78
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/FilesActivity.java
3b2ad11fca93f07ab552ea41452e43168888833b 16-Oct-2015 Steve McKay <smckay@google.com> Enable explicit package for quick view intent.

Define the package in config...suitable for setup via overlay.
Undefined by default makes the feature disabled on phones...n stuff.
Fall back to single-file QUICK_VIEW.
Work around 24963914 (for now).

Bug: 24963914
Change-Id: Ia9c5a606d294ae053fd5e60d015f0aa0010eba4f
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/FilesActivity.java
c2dbc749428992dd416e9cf3664564b086b899f0 05-Oct-2015 Steve McKay <smckay@google.com> Don't explicitly foreground tasks.

Get out of the way of documentLaunchMode, let ActivityManager do the work for us.
Quiet some noisy logging.

Bug: 24413182
Change-Id: Ia48244871296f5c6b83a838dcde6496acbd45793
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/FilesActivity.java
5bbae10c4c603ec6597f8dc7e1c7d060877cefc9 01-Oct-2015 Steve McKay <smckay@google.com> Normalize and improve menu fiddling.

Also, don't show copy/paste menu items (though they can still be invoked via keyboard).
Show copy to /move to instead.

Change-Id: I6e7bdf35bf370ea30d4f12a5a200ad38ff0221f4
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/FilesActivity.java
8359eaafa264679c30a56c0ea9850d829c9c6e0c 01-Oct-2015 Steve McKay <smckay@google.com> Merge "Provide previous stack when opening new window."
cf34ce8e22161b0d1ba8d97c00ae460d012f0356 30-Sep-2015 Ben Kwa <kenobi@google.com> Merge "Switch DocumentsUI over from Toasts to Snackbars."
94b486d32c10d5ffbd8627977ca4759c246ecf4b 30-Sep-2015 Ben Kwa <kenobi@google.com> Switch DocumentsUI over from Toasts to Snackbars.

Add a new top-level CoordinatorLayout to ensure proper operation of the
snackbar.
Switch all Toast code over to use Snackbar.

BUG=24474629

Change-Id: Iafffb35be6115cbac9304fd44e77e73b6be40c17
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/FilesActivity.java
323ee3ec094b78b9f96a8ab55b5c3b291028eeaf 26-Sep-2015 Steve McKay <smckay@google.com> Provide previous stack when opening new window.

EXTRA_STACK support was already in place (from CopyService).
Add "isRootUri" to DocumentsContract.

Bug: 24410611
Change-Id: Ia380030216323d1272ef247280582e4b55b83c42
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/FilesActivity.java
9f9d5b432d6b87fe28a9f90f540b229d0f363538 24-Sep-2015 Steve McKay <smckay@google.com> Add support for opening multiple windows.

Installs an intermediate activity that manages tasks.

Bug: 20562850
Change-Id: If2d0a125b0630c27af07666b0f6a712f58243e9f
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/FilesActivity.java
83df8c072ddd01a5adc11da0869103c4645e6d76 17-Sep-2015 Steve McKay <smckay@google.com> Merge BROWSE and BROWSE_ALL actions.

Open Files app when exploring from settings.
Force visibility of file size in this mode.
Don't hide empty media providers.

Bug: 24136618, 24140864
Change-Id: I6f238586725f9b6255812e3082bb8d8655219a7d
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/FilesActivity.java
c643386e2801b7bb7f3ba79c4474a5b05a224d4f 23-Sep-2015 Steve McKay <smckay@google.com> Update RecentsCreateView to use RecyclerView.

Move common DirectoryContainerView handling to BaseActivity.

Change-Id: I2c34b23b7050b68999f16e6d7f651c94ea8e47b6
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/FilesActivity.java
7cc80013f38a60bea34c1a73c2df84bac8890382 12-Sep-2015 Ben Kwa <kenobi@google.com> Adjust theming for Files mode.

- Bring files mode in line with MD spec platform colors.
- Normalize selection highlight color in grid and table mode.
- Fix status bar and accent colors in portrait mode.

BUG=23797347
BUG=24012021

Change-Id: I3427939b39f3f39f5e04bd4d854166dd6b3881b1
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/FilesActivity.java
0f7078f0045f354ba6573f0094e097a9afd6534d 08-Sep-2015 Ben Kwa <kenobi@google.com> Refactor DocsUI to break out a new ManageRootActivity.

- Split all ACTION_MANAGE-related functionality off from
DocumentsActivity, into a new activity.
- Create new full-screen layouts for said activity.
- Fix some styling issues in {Documents,Files}Activity.

Change-Id: I0384715ad3c7d70a3a3daf510f1a09e8c5732348
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/FilesActivity.java
12055474a7f7119d3b44955e09358b9675167716 21-Aug-2015 Steve McKay <smckay@google.com> Show a drawer when in portrait mode.

This makes more space available for content.
Rename all the "Standalone" stuff to just "Files".
Move layout inflation into base class.
Move backbutton > drawer interaction into BaseActivity.

Change-Id: Ie778b323c6e80122389f029be148dd9e0c4bfb6e
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/FilesActivity.java