4759c9f03f476e34f9716c88bc1bcbd7ba07907c |
|
14-Apr-2016 |
Tomasz Mikolajewski <mtomasz@google.com> |
Cancel band selection on directory change. This is a workaround for N. Ideally we should keep the band selection, as directory may change very often, eg. during loading, or downloading a file (every second). Bug: 27224277 Change-Id: I40cfb12c4f7928c4e0d6e675e91ba30ab3a6ab52
/frameworks/base/packages/DocumentsUI/tests/src/com/android/documentsui/dirlist/TestSelectionEnvironment.java
|
c29fd8d149eab691db867e07c6d1e22140f3ad6b |
|
14-Mar-2016 |
Ben Kwa <kenobi@google.com> |
Fix band selection problems. BUG=27364174 BUG=27645942 Change-Id: Ib14680db708f1ddf1f5dc9dff8b93b655fa3f123
/frameworks/base/packages/DocumentsUI/tests/src/com/android/documentsui/dirlist/TestSelectionEnvironment.java
|
6792489dc490eb029469f73490a560c76e84dc98 |
|
27-Jan-2016 |
Ben Kwa <kenobi@google.com> |
Refactor key handling and selection. - 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
/frameworks/base/packages/DocumentsUI/tests/src/com/android/documentsui/dirlist/TestSelectionEnvironment.java
|
22f479dad33deb86ee8efbce0c577e03d510da39 |
|
21-Jan-2016 |
Ben Kwa <kenobi@google.com> |
Fix band selection problems. - Remove whitespace from the GridModel, which isn't set up to deal with it. - Use absolute column bounds whenever translating the band rectangle into column indices. This necessitates additional binary searching, but is necessary when columns aren't fully populated, which happens with the new grid layout. BUG=26512327 Change-Id: I5016d5de8f00c366f575f0722739007ac1612923
/frameworks/base/packages/DocumentsUI/tests/src/com/android/documentsui/dirlist/TestSelectionEnvironment.java
|
44408260ba99eea55f7c0ec02778bb13d83c3262 |
|
06-Jan-2016 |
Steve McKay <smckay@google.com> |
Don't proxy calls to DocumentsAdapter in MultiSelManager. We were bouncing calls out to the adapter pulled from RecyclerView, but the adapter is easy to write a test double for and we can readily inject the adapter when needed at runtime. Eliminates unnecessary indirection. Also, protect against failure when documents can't be loaded for delete. Change-Id: Ief6585bf2e3e4fd407d801d485a9d7cd888b8500
/frameworks/base/packages/DocumentsUI/tests/src/com/android/documentsui/dirlist/TestSelectionEnvironment.java
|
c72a2cb899acf5562288675435b08d91ccf8019d |
|
17-Dec-2015 |
Ben Kwa <kenobi@google.com> |
Implement bucketed sorting in DocumentsUI. Change the sort code in the Model to bucket items into two separate categories (folders and documents) and then sort the two buckets separately. Add code to the adapter to insert a visual break in the UI, between folders and documents. Change-Id: I759fedcef829aba9ad61554326489a9e62641cc7
/frameworks/base/packages/DocumentsUI/tests/src/com/android/documentsui/dirlist/TestSelectionEnvironment.java
|
fcb54d8be7777b899d4d2da31419591b12a765d6 |
|
11-Dec-2015 |
Ben Kwa <kenobi@google.com> |
Wrap up the stable ID refactor. - Rationalize band selection: make it internally a range selection operation, that translates positions to IDs only when updating the Selection. - Clean up TODOs and comments. - Fix selection adjustment when things are removed from the view. Change-Id: If917eb9dd18e755c5a0ce83c84409902c4ef3d2e
/frameworks/base/packages/DocumentsUI/tests/src/com/android/documentsui/dirlist/TestSelectionEnvironment.java
|
743c7c2f0f57b4cef7cc11154b2e804a7eb33177 |
|
02-Dec-2015 |
Ben Kwa <kenobi@google.com> |
Transition selection to use Model IDs. This CL transitions the MultiSelectManager to (mostly) use Model IDs. - Add the ability to retrieve all model IDs for the current directory, from the model. - Add a map in the DocumentsAdapter that maps from adapter position to model ID. - Make the adapter listen for model updates, and update its internal map of positions to model IDs appropriately. - Use the aforementioned map when binding ViewHolders. - Get unit tests to compile; get as many tests passing as possible at this point. Tests related to deleting things won't work right now. Still to do: - Add code to the adapter to sort and group items. After this is done, SortingCursorWrapper will no longer be needed. - Add code to the adapter to deal with item addition/removal. After this is done, the pending-deletion code in the model can be removed. - Rationalize position-based vs model-based selection. Some code in the MSM (in particular, code dealing with range selection) is still position-based. It's becoming clear that it doesn't make sense for range selection to be ID-based, since "range" is a concept that only makes sense in the context of items that are positioned in the UI. Will need to iterate more on the position-based code to make sure it makes sense. BUG=26024369 Change-Id: I767cde2d888c101aaf83b59155b14634a236164b
/frameworks/base/packages/DocumentsUI/tests/src/com/android/documentsui/dirlist/TestSelectionEnvironment.java
|
57a93babd76fd4c6519f26dbed6f91aeeb7a5ebb |
|
11-Nov-2015 |
Steve McKay <smckay@google.com> |
Handle shift+arrow correctly in single select mode. Bug: 25603626 Change-Id: I2f71152b303ac218ecec59e8200acf8a716ea0ee
/frameworks/base/packages/DocumentsUI/tests/src/com/android/documentsui/dirlist/TestSelectionEnvironment.java
|