History log of /frameworks/base/packages/DocumentsUI/tests/src/com/android/documentsui/dirlist/DocumentHolderTest.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
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/DocumentHolderTest.java
0436a757211bd5b485ba5e484ee37082c59e1c47 15-Jan-2016 Ben Kwa <kenobi@google.com> Rework selection handling for items in the DirectoryFragment.

- Remove the gesture detector from the MultiSelectManager, and
consolidate gesture detection and event dispatch logic in
DirectoryFragment.GestureListener.

- Route single-tap events through the DocumentHolder, so that it can
apply view-specific logic, like making a tap on the item's icon
select rather than activate.

- Consolidate event handling logic in the ItemEventListener.

- Add new unit tests for DocumentHandler.

BUG=24326546

Change-Id: Id15cdd11b13e4c063c1baff95aa8ee09c190d6c3
/frameworks/base/packages/DocumentsUI/tests/src/com/android/documentsui/dirlist/DocumentHolderTest.java