summaryrefslogtreecommitdiff
path: root/packages/DocumentsUI/src/com/android/documentsui/FilesActivity.java
AgeCommit message (Collapse)Author
2016-07-29Delete orig DocumentsUI.Steve McKay
Bug: 29224737 Change-Id: I6d6327918adba699d2ed3652bc2dbea27f872284
2016-07-14Allow root item accepts drag and drop.Garfield, Tan
Bug: 28315281 Change-Id: Ie37536258f04c1b0d3ff5a315f4a5fa33e0ba182
2016-07-13Follow up changes from ag/1190582.Ben Lin
Change-Id: I40121fc3d36e430c402da2835027283eb4b11071 (cherry picked from commit ce83f978d5bff5505a1d5f9bec894fe5f1091a4d)
2016-07-12Pull clipping related classes to a separate package.Garfield, Tan
Change-Id: I125d1c34e475f9465e82014cb869f88c9c7cebc4
2016-07-08Docsui-level work for implementing Eject on Roots list.Ben Lin
1. Added Eject Icon for Roots that support eject 2. Added Context Menu for RootsFragment (Settings and Eject) Bug: 29584653 Change-Id: I97f582de05763e3f0327bc0d2dc6d4e2222e047c (cherry picked from commit d96661f8b0f613b40f2bdfc178bbe06022b5f76c)
2016-06-30[multi-part] Eliminate 1k selection limitGarfield, Tan
* Rename class ClipDetails. * Add FileOperation class and merge it with JobFactory. Bug: 28194201 Change-Id: I46639b21c9e424644289a1bf34b85234a9becd2b (cherry picked from commit 7f17819f1320d12f1f35a8f5327e0c7e63dfed54)
2016-06-20Moving Menu-related logic from BaseActivity to MenuManager.Ben Lin
Bug: 29423149 Change-Id: I228e1525cb82d310b16ef0aec8acb4534b7b601d (cherry picked from commit d896dc7b487771f7d5329feb01ac7c3355fce9ed)
2016-06-17[multi-part] Eliminate 1k selection limitSteve McKay
* Save selection to disk, delete old selections on app startup. * Do clipper work in background for copy/cut. * Pull DragShadowBuilder out of DirFragment. * Reorganize selection handling to avoid creation of large lists of objects. * Eliminate getAll from selection, make it iterable, remove unused method. * Avoid creating DocumentInfo instances for full selection when initiating drag and drop. Next step will be to pass selection tokens to FileOperationService. Change-Id: Ia3e30a88ebf328e5b045d06b0df15dbd26a01a42 (cherry picked from commit 69b63de63ddae8d1a3ad8fa49a0beb1ff6f921e1)
2016-06-16Implementation of Right-click context menus for docs/files.Ben Lin
Bug: 24416336 Change-Id: I675baf4abf6308bc1f6c3b4171f7251b0f3fd6e4 (cherry picked from commit be70710de3e1507292381cd14a9e1c1343ff2524)
2016-06-08Isolate Menu/Action management into dedicated manager classes.Ben Lin
We are now also returning fragmentTuner at the activity level, so that directoryFragment does not have to do a .pick() logic depending on the activity type. Rather, the logic lies within the activity itself. Bug: 24416336 Change-Id: Idb200864f6c9468b9193781f6ac505b557ffbce9 (cherry picked from commit bc330a4bf53c3a766292097d1815b9abd469a945)
2016-05-31Don't assert on uris with stack.Steve McKay
This is legal arrangement when viewing Archives. Bug: 28923366 Change-Id: I75a26edc8dac865f536a7c5bcdef1ba00b0883f0
2016-05-25Separate paste code from DirectoryFragment.Garfield, Tan
Also untie DocumentClipper from activities. We'll have a single DocumentClipper across the app from now on. Bug: 28742120 Change-Id: Ib9e2537c3499ba2fa0a203ddad3ae71246d5b009 (cherry picked from commit 0cd92d35c533c16b301bd228cce8c68a289407a1)
2016-05-17Open root list when hovering on the edge in drawer layout.Garfield, Tan
Bug: 28345294 Change-Id: Ia569003e21aea0641ccc1d2a5e042bdc93f32bb3 (cherry picked from commit 49eda9885e81a32f8a3d7cc7b9f9f15766b2621e)
2016-05-13Merge "Don\'t show new-window item in Downloads per Gabe." into nyc-dev am: ↵Steve McKay
fec0d188c1 am: 6fdaf2f2cf am: b8995b7abc * commit 'b8995b7abc9cbaa1dcb363c68535a63f4e8768a3': Don't show new-window item in Downloads per Gabe. Change-Id: I54d288582f474ed1a0718a3f6327af7f1814be75
2016-05-10Don't show new-window item in Downloads per Gabe.Steve McKay
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
2016-05-10Add capability to spring load a root or directory.Garfield, Tan
Bug: 28242270 Change-Id: I5cbdb7734af8d78015a82fd7b38b1266576c9914 (cherry picked from commit b5e2714d63dc5e74cef69f590b41a161eeca7b80)
2016-04-21Enable Ctrl+X cut operations, along with some code refactor.Ben Lin
Bug: 27451823 Change-Id: I062dcbd065434c22a3ffeb33d4cac2b4f9da104b (cherry picked from commit 5b696f91aa0f12f29be5205647bdc398e2831af8)
2016-04-11Merge "Fix opening archives in Downloads." into nyc-devTomasz Mikolajewski
2016-04-08Consolidate user actions metrics into one histogram.Aga Wronska
Bug: 27301081 Change-Id: Ib2ac46dd268e492c576bc082dc349c4a6826897f
2016-04-08Fix opening archives in Downloads.Tomasz Mikolajewski
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
2016-04-06Merge "Massage code to better support Files overlay." into nyc-devSteve McKay
2016-04-06Massage code to better support Files overlay.Steve McKay
Also, allow "productivity_mode" config to be enabled via intent extra as a developement aide. Bug: 28006206 Change-Id: I7be8d96a0e924f9ce8023347e051d28d69a0eec9
2016-04-04Make Metrics.logKeyboardAction() method take @KeyboardAction typeAga Wronska
instead of KeyEvent Change-Id: Ib9a19532612b679141b6d611e448247d3b0bab23 Fixing: b/27942360
2016-04-01Add metrics for keyboard shortcutsAga Wronska
Change-Id: I3a63efd856f25cc33d61b734970675b77645a26d Fixed: 27942360
2016-04-01Add metrics for menu actionsAga Wronska
Change-Id: Ic20802730e6068cfe49c277c3378c15ee0ba09fe Fixed: 27921699
2016-03-29Refactor usages of Picture In Picture and Multi Window (1/4)Andrii Kulian
Bug: 27365860 Change-Id: I1590e430a12ceb84cb83da295e0bf7e4378fea96
2016-03-28Add full bar mode for search view on small devicesAga Wronska
Fixed: 27406434 Change-Id: I828ff72752cdb35dff453ea405209f169e550c1a
2016-03-23Make pressing 'Back' button open the drawer when in Recents rootAga Wronska
Change-Id: I3c6cbcd3d2d003af1a6459c3bfd193ee45021882 Fixed: 27230999
2016-03-22Merge "Change copy/move destination to Downloads when home directory is ↵Aga Wronska
hidden." into nyc-dev
2016-03-22Change copy/move destination to Downloads when home directory is hidden.Aga Wronska
Bug: 27791217 Change-Id: If196441a57053ada9875c6cc29d4c7f13fcb57e8
2016-03-22DocsUI: Disable debug logging by default.Ben Kwa
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
2016-03-18Change the title of DocumentsUI from "Files" to "Downloads".Daichi Hirono
BUG=27683277 Change-Id: I429cae8804b8f318f58039fc63d081c2a864fad0
2016-03-12Merge "Run all downloads through trampoline." into nyc-devSteve McKay
2016-03-11Run all downloads through trampoline.Steve McKay
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
2016-03-11Centralize animation related resources.Steve McKay
Fix minor bug in animation (use height not width). Change-Id: I357224086b2732fe9ad49a145db3e82259a87891
2016-03-10Delete downloads activity.Steve McKay
Delete "MANAGE_ROOT" activity. Add intent filter for "BROWSE_DOWNLOADS". Open by default on Downloads directory. Bug: 27563427 Change-Id: I1f85dc17a0bc94b439a272847e4ab3bb347ead23
2016-03-07Send APKs through safe install path.Steve McKay
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
2016-02-29Update preconditions to be asserts...Steve McKay
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
2016-02-24Don't restore stack when picking copy destination.Steve McKay
Move fancy drawer "fiddling" to FilesActivity. Rename the various "Restore" tasks to better reflect their roles. Change-Id: I7f5c3dee11112bf0a31e6219d09c572c5651629d
2016-02-22Merge "Move directory and roots support to own ui bots." into nyc-devSteve McKay
2016-02-22Move directory and roots support to own ui bots.Steve McKay
Also...sorry, snowball, don't automatically open folders that are created in Files app. Only do this in DocumentsActivity. Change-Id: I271655fd3566496eced4aaa7a44d5110233150a0
2016-02-22Directory fragment refactoring.Aga Wronska
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
2016-02-16Provide siblings in a sorted orders in DocumentsUI.Tomasz Mikolajewski
Bug: 27192158 Change-Id: Idefd2ba3027cd4630fcd2aefade9e6b4952e7125
2016-02-05Move create folder and sort to overflow menu, cleanup back behavior.Steve McKay
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
2016-02-04Simplify State initialization w/ better semantics + improved Task security.Steve McKay
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
2016-02-03Normalize toolbar management.Steve McKay
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
2016-02-03Merge "Open zip files nicely from the Download app with Files app."Tomasz Mikolajewski
2016-02-03Open zip files nicely from the Download app with Files app.Tomasz Mikolajewski
Bug: 26321218 Change-Id: I8a7a7e914d290ea1b6f424ee5fbd38a4b09c362d
2016-02-03Fix tapping on more than one failure notification.Tomasz Mikolajewski
Bug: 26809248 Change-Id: I4e52b7e7a9e09d57b8a2231a09c9121b5fd19e51
2016-02-02Show view mode button in action bar on Downloads.Steve McKay
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