History log of /packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/ListeningGestureDetector.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
d79edd10abf50138488abcc085934ebf5a3759b4 15-Mar-2017 Ben Lin <linben@google.com> Disable pull-to-refresh for all mouse inputs and only if page already on
top.

Bug: 35673711
Change-Id: I0881c6291a3d2b81a224986a1cd7af0372ed5b21
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/ListeningGestureDetector.java
aad7883a1fae05d0951f8c09ecbef3616e8c1be4 09-Mar-2017 Steve McKay <smckay@google.com> Features tweaks:

Make gesture_scaling into a feature.
Make command_processor into a feature.
Alphabetize features.
Rename DebugCommandProcessor to CommandInterceptor.
For now, let static code force-enable a feature.

Bug: 35923154
Test: Build and try.
Change-Id: I48fd3294c3ef744f945f1541cc599d37c7b4a6a3
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/ListeningGestureDetector.java
7b38f3465c3779384a17e84cc04609d9d68b56f4 14-Dec-2016 Ben Lin <linben@google.com> [multi part] Moving Empty/Error/No Results view and Info/Error bar into
DocsHolders.

This still currently only has one of info/error as opposed to all of
them. I will split them up and include them both if Cursor has them on a
follow up.

Also:
- Removed all things regarding "hidden model ids"
- Added more files & and a folder that throws Exception in DemoProvider

Bug: 33399053
Bug: 32972298
Change-Id: I612fc3990a3e2b6fe0e779de4de24bd65ab47933
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/ListeningGestureDetector.java
30535bce902104c97bbf70783d684ee673cb7637 04-Nov-2016 Steve McKay <smckay@google.com> Don't log verbose stuff by default.

Bug: 32633923

Verbose logging can be enabled using: adb shell setprop log.tag.Documents VERBOSE

Change-Id: I03a5d4dae54a023d8b1b000bc7ea8e34ffe1035f
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/ListeningGestureDetector.java
b03a59c43e526b0814b2c8e700257d34a0aef226 20-Oct-2016 Steve McKay <smckay@google.com> Add gesture scaling support for grid mode.

Add DebugFlag class as main holder of runtime debug settings.
Put Gesture scaling behind debug flag.
Change debug command prefix to "debug:".

Change-Id: I671f1b7957a3786fe69d4d805d60a4ee937c6f39
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/ListeningGestureDetector.java
4f78ba643270b9d84da1952d8e408220b25ec6fd 05-Oct-2016 Steve McKay <smckay@google.com> Move selection to selection pkg, make activity scoped.

Move all other selection related classes to selection pkg.

Change-Id: I57a3964fada55b0f4d073f05a7833455235221b9
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/ListeningGestureDetector.java
990f76ea83a249cd8fc3c797e40626b94cd7945c 16-Sep-2016 Steve McKay <smckay@google.com> Lifetime of FragmentTuners scoped to activity.

Add support for resetting with new state from directory fragment.
Update Model to use an EventListener.
Eliminate documentPick handling from base activity and directory fragment...
Plum document picking directly from UserInputHandler to FragmentTuner instances.
Add new EventHandler internface (returns void, more semantic meaning that Consumer<T>).
Replace ModelUpdateListener interface with EventHandler.
Make DocumentAdapters return EventHandler<Model.Update> instead of
implementing ModelUpdateListener.
Move Activity specific FragmentTuner impls along side respective activities.

Change-Id: Ia6a5ab00ede685f7418773ed865d8c51e4125330
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/ListeningGestureDetector.java
d9caa6ab53aa784acaf241c0ded3c4ae2d342bf8 16-Sep-2016 Steve McKay <smckay@google.com> Move State to base and root stuff to roots.

And move Shared to base.
And lots more to base.

Change-Id: I8b01264a329473c13c59f0cd25a320ba73dbd82d
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/ListeningGestureDetector.java
bff980add478a229b6923f6202152fb792104da0 14-Sep-2016 Steve McKay <smckay@google.com> Move event handler to its own file.

Change-Id: If9e14ec381bfb09f5d57a405956612fb17c3ac1b
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/ListeningGestureDetector.java
84bd0f13bd02ea26acc937b00c050884dc7546ef 12-Sep-2016 Garfield Tan <xutan@google.com> Refactor SelectionModeListener.

* Move ActionMode logic into a new class ActionModeController
* Move SelectionDetails logic into MultiSelectionController
* Merge canSelect() and onBeforeItemStateChange()
* Add some basic unit tests for selecting unselectable items
* Fix a bug that selects unselectable items using gestural selection
* Convert MultiSelectManagerTests to JUnit4

Change-Id: I14642178ff39e7b990cc9f3fb0d9f40e6309e087
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/ListeningGestureDetector.java
f0fceb4cd731f70270970279791365cc6f6e4a49 08-Sep-2016 Steve McKay <smckay@google.com> Don't try to drag non-model-backed views.

Refactor DragStartListener to allow test confirmation of the fix.
Move DragShadowBuilder related code into DragShadowBuilder.Factory.
Further de-concrete-couple DragStartListener from handlers.
Give event handling names in DragStartListener a wee bit more explicit meaning.

Bug: 31350922
Change-Id: I5b4ff88b65c40d3ccadcda3338e547b2c5c6ac32
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/ListeningGestureDetector.java
35f99e02f3fa8af21139be216fc57c123779808d 31-Aug-2016 Ben Lin <linben@google.com> Refactor of BandController/DragStarter/GestureDetector.

- DragStartHelper refactored into DragStartListener, and has no
dependency on framework class
- BandController setup code with RecyclerView moved to
ListeningGestureDetector
- Bulk of code to start drag (drag shadow, Clipper data, drag
title/icon) moved to DragStartListener
- Remove scrolling ability with gesture if using mouse

Change-Id: I8adf7edee6adcf4db3354df757a95e601397066e
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/ListeningGestureDetector.java
427288020ede94bde24e3b2f6607be8e9b53e7ef 20-Aug-2016 Ben Lin <linben@google.com> Enable Gesture Multi-Select for List Mode, but no more sweeping.

Change-Id: I79ff0c724e0ff0af4e09ef9ad3b18232b20f16a4
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/ListeningGestureDetector.java
40f4488920f028dd16db31d2dfeb952f36528e9f 04-Aug-2016 Ben Lin <linben@google.com> [multi part] Gesture Multi-Select feature.

Couple of side changes:
1. Moved Long Press event to UserInputHandler level. Removed weird
LongPressListener that was lingering in DirectoryFragment.
2. Set RefreshLayout to never intercept events.

Bug: 30101739
Change-Id: Ib1c90f372850200293c366eb406a861853aee628
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/ListeningGestureDetector.java
c492e8225c501701282d6a2cc7d51e0076a0bdf2 10-Aug-2016 Ben Lin <linben@google.com> Fix a bug where context menu keeps popping up as we move cursor.

Previously, since there was not a clear code path for TouchEvents for
mEmptyView, we wrote one just for this specific class. However now with
everything in one class (ListeningGestureDetector), it makes sense to
receive events and just delegate them to UserInputHandler#onTouchEvent.

Bug: 30781381
Change-Id: Ied38fa92bbe3a2b12bba79a5cce5760eb73d1127
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/ListeningGestureDetector.java
dbcccd65dab76420084315b962855bf9fc66108d 06-Aug-2016 Ben Lin <linben@google.com> Move Right-click handling into UserInputHandler.

Not sure how I missed this the first try, but there's actually a
onDown() method for GestureDetector. What we can do then is override it,
and then call on rightClick if it's a mouse & a secondary click. This
get rid of a lot of hacky stuff we did.

We still have to keep mAteRightClick so we won't do singleTapUp(), which
is logic for single finger press. Also, we need to catch for right click
still in interceptEvent, so that it doesn't go down into its child views
(Who will try to generate a context menu themselves, and ... things stop
working.)

This also fixes the bug listed below, so now all menus are activated via
ACTION_DOWN only.

Bug: 29548676
Change-Id: I4d4acb3fc1f063379b508bc895c9cf70a2eeb245
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/ListeningGestureDetector.java
74956af50b13b5ffde252a13547c960ba3e9c5b4 01-Jul-2016 Steve McKay <smckay@google.com> Consolidate user input handling in single class.

But separate mouse and touch handling into independent (internal) handlers.
Ensure we don't do band select on right click + drag.

Bug: 29575607, 29548676
Change-Id: I247e3ba002751f2cda010125e0e7b4bdd745ac23
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/ListeningGestureDetector.java
79a6fe0353468d03a37624bb352e94007daf6d49 30-Jun-2016 Steve McKay <smckay@google.com> Move GestureListener to own file.

And:
- make MotionInputEvent AutoCloseable (and update obtainers accordingly).
- remove unused constructor args and overloading from MultiSelectManager.

Change-Id: I335a95c3d05ab10bdcbfebab8dc69f0b2f681e3a
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/ListeningGestureDetector.java
c47a9186e91e0e0d8397061f6a13439b399209fe 23-Jun-2016 Steve McKay <smckay@google.com> Move event handling code out of DirectoryFragment

Bug:29575607
Change-Id: Ieae3bcee030973bf83551a74f722236a24832730
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/ListeningGestureDetector.java