Also, apply delete in reverse order to placate RecyclerView.
TODO: Refactor this whole stack...needs some love.
Bug: 25091323, 24749296
Change-Id: I84e21c16423048bd50cd988eb1e2a36dc62b9d16
- Add a click handler that basically handles all cases (including the
enter key) of Items being clicked.
- Open the focused file in non-select mode, toggle selection if in
selection mode.
- Remove now-redundant onSingleTapUp handlers.
- Redo focus indicator, since it's now possible to toggle selection on
the focused file.
- Don't dismiss selection on arrow-key navigation.
BUG=24705453
BUG=25114155
Change-Id: Iba74188514ecf2bc6b56573087e3c3ccc83f85d2
Otherwise there is a really rare race condition where we try tearing
down the tasks while we're still setting them up.
Bug: 25078914
Change-Id: Icf89241f9abec3fadc8606cfb4fbc029bbe91515
DirectoryFragment now uses an independent gesture detector.
Move early event-handling logic out of listener into the handler class.
Change-Id: Ie8a01b1507c8a8aa74355ead38feb7b802029540
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
- Move the key listener from BaseActivity into DirectoryFragment, where it
belongs.
- Add code to detect the shift key during keyboard navigation, and
extend the selection in that case.
BUG=20859059
Change-Id: Ia7d3c7d4343f0185873deeaf1a35028a716b6e19
Push save enabling logic into SaveFragment, let it figure it out.
Don't assume DirectoryFragment is present in BaseActivity.
Permit DirectoryFragment#get to return null when not present.
Bug: 24305559
Bug: 24955068
Change-Id: Ib50d674b16ba48dcefb6e5b73055120c3e7c6dba
Temporary fix for CTS.
Eventually we'll need to update UiAutomator to support specific input tooltypes.
Bug: 24544391
Change-Id: Ief339d0d35c4305811928e9605b535c7ef230f7b
Add a handler to shift focus to the first and last files when the home
and end keys (respectively) are pressed.
BUG=24682598
Change-Id: I82db67d0d0f8292b1dad966defa68800496d59f2
Get out of the way of documentLaunchMode, let ActivityManager do the work for us.
Quiet some noisy logging.
Bug: 24413182
Change-Id: Ia48244871296f5c6b83a838dcde6496acbd45793
- Enable the focus bit on grid and list items.
- Add (ugly placeholder) styles so we can see the focused item.
BUG=24677520
Change-Id: I29fc09cd24c67d50f93937030606dbfc64962932
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
If the CPU goes to sleep during the copy, certain devices will
collapse the USB OTG power domain, which can cause user data loss.
Bug: 24574575
Change-Id: I8e26caac8784490d2dee324b38e6085cd55eb8bb
- Move all unit tests to be run under the android framework.
- Add a unit test for ag/776629
- Make DirectoryFragment.Model tests properly simulate finalization conditions.
Change-Id: Ie33d097154d464149fd8c0c24bf66ada677db4ad
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
EXTRA_STACK support was already in place (from CopyService).
Add "isRootUri" to DocumentsContract.
Bug: 24410611
Change-Id: Ia380030216323d1272ef247280582e4b55b83c42
Productivity mode is a flag that was designed to be enabled only in
andromeda builds. It should not be enabled in the base-level package.
BUG=24474568
Change-Id: I048bae9d3cf8270503cf245ed1e6959dab68571c
Modify the MultiSelectManager so that toggling selection on an item
notifies listeners of selection changes, if necessary. This fixes a bug
where notifySelectionChanged wasn't getting called when the selection
changed.
BUG=23944862
Change-Id: I3aef41cc92c560dc15bdc0fe310c340bdb3005f6