summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/ButtonDropTarget.java
Commit message (Collapse)AuthorAgeFilesLines
* Fixing dark tint for ShadowDrawable.Sunny Goyal2017-06-201-2/+2
| | | | | | Updating the dark theme for empty all-apps search drawable. Change-Id: Ieb2018924da337bdd97eaf3adf2d32c3e3bebc73
* Add shadow to badgesTony Wickham2017-03-011-2/+3
| | | | | | | | | | - Add static method to ShadowGenerator to generate a circle Bitmap with a shadow. - Move setColorScale() from DragView to Themes, and use it to apply color to the shadowed Bitmap. Bug: 35744066 Change-Id: I8d1da528bbf94dc83851f0b4016361ed9f8d5349
* Updating the preview generation logic so that it aligns better withSunny Goyal2017-01-271-1/+1
| | | | | | | | | | | | the drag source image > Using common code for pending item drag (WidgetContainerView and PinItemDragListener) > Adding a shortcut-circuit in Workspace when a pendingItem can create a shortcut directly. Previously the multi-window drop was routing through onActivityResult which was causing some state information to be lost. Bug: 33584624 Change-Id: I0259870032185713caa9bff27092dbae6ce91199
* Removing all compatibility code below LollipopSunny Goyal2016-12-161-26/+3
| | | | | Bug: 32745285 Change-Id: I62971908e3e4402941fab627bbdfd47be64473a3
* Refactoring FlingToDeleteSunny Goyal2016-12-131-10/+7
| | | | | | | | | | > Moving all fling related logic to FlingToDeleteHelper from DragController > Removing fling related methods from DragSource and DropTarget > Moving fling animation logic from DeleteDropTarget to FlingAnimation > Simplifying DropTargetBar to directly look for all valid drop targets. This makes it easier to add new DropTarget in xml. Change-Id: I7214d2d30c907ab93c80d92d9f9be6dda2d63354
* Use Launcher.getLauncher(Context) instead of type-casting.Tony2016-10-071-1/+1
| | | | | Bug: 32010039 Change-Id: Icb80d3e547a706740b84df2cb80f99e4a7f81c43
* Adding support for multiwindow drag and dropSunny Goyal2016-09-121-1/+2
| | | | Change-Id: I95b46e3c3f1238307d3ef5a6c81a8e530ba0987a
* Some drag and drop code refactor:Sunny Goyal2016-09-011-7/+7
| | | | | | | | | 1) Adding DragOptions to easily extend drap functionality 2) Changing onDragStarted signature to send more information 3) Updating states for dropTargetButton based on drag event directly 4) Removing folder item based on onDragStarted and not startDrag Change-Id: I65b684e092ddc081d086bfe2c8c1973ed170eaeb
* Fixing broken accessibility dragSunny Goyal2016-08-171-2/+5
| | | | | | | | | | > Allow touch events on hotseat while in accessible drag as drag now happens in spring loaded state. > Allow drop target buttons to ignore thershold check when in accessibility drag Bug: 30900444 Change-Id: I88274367983fc027b2ddde3a719ca943f4f48587
* Moving LauncherAccessibilityDelegate to Launcher to associate it withSunny Goyal2016-06-171-2/+1
| | | | | | activity lifecycle. Change-Id: Ib815505677fa7ed74bdcfe7141b1d9bea5d7143a
* Removing the SearchDropTarget bar as it no longer contains the QSBSunny Goyal2016-06-061-7/+5
| | | | | | | | | | | | > Renaming it to simply DropTargetBar > Moving AppInfo to the top bar as well > The workspace pages will extend to the top edge (minus some padding). Since the QSB is no longer displayed on top of every page, there is no reason to reserve the space. > In spring-loaded mode, the workspace cell layout will scale enough to make room for the drop target bar at the top Change-Id: I2baf607310335dd576c9d9fcbb75ab708f47ac03
* Add distance threshold for dragged items before accepted by targets.Tony Wickham2016-03-291-3/+8
| | | | | | | | | With the new spring-loaded workspace, items are often very close to button drop targets (e.g. App Info) at the start of a drag. This threshold makes it less likely to accidentally drop on a target. Bug: 24099531 Change-Id: I4912ceeb0b63958816177c7bde073e825176d987
* Defining separate layouts for horizontal and vertical drop target barsSunny Goyal2016-03-241-10/+11
| | | | | | | instead of chaning the layouts in DeviceProfile Bug: 27721989 Change-Id: I9a22c21e643f4fd0058c9be5e9d705aaf7649204
* Refactoring WallpaperOffsetInterpolator to a new fileSunny Goyal2015-10-161-5/+0
| | | | | | Removing some us unused methods Change-Id: Ife790e5ca6848fa13dc3fab1bba1e6220bf83743
* Added 'Cancel' drop target from all apps and widget picker.Tony Wickham2015-10-051-3/+5
| | | | | | | | | | - Reuse DeleteDropTarget since it's the same effect, but with "Cancel" instead of "Remove" if supportsDeleteDropTarget() returns false. - Rename related strings (but not their values) Bug: 24104015 Bug: 24099531 Change-Id: Ia9fbcaa17bb17f7aa31df1f830298da01544c178
* am 9ccacb54: Merge "Fixing \'Item removed\' announced twice when using ↵Sunny Goyal2015-10-011-5/+1
|\ | | | | | | | | | | | | accessible DnD" into ub-launcher3-burnaby-polish * commit '9ccacb544bfcb6b444edf09b1b37f955ae57168c': Fixing 'Item removed' announced twice when using accessible DnD
| * Merge "Fixing 'Item removed' announced twice when using accessible DnD" into ↵Sunny Goyal2015-10-011-5/+1
| |\ | | | | | | | | | ub-launcher3-burnaby-polish
| | * Fixing 'Item removed' announced twice when using accessible DnDSunny Goyal2015-09-251-5/+1
| | | | | | | | | | | | Change-Id: I2d8781155619d22a41c3f363be7909d411c62fa9
* | | am d21301e6: Cancelling the stateannouncer when entering button drop targetSunny Goyal2015-09-251-0/+3
|\| | | | | | | | | | | | | | * commit 'd21301e674377ecd72bd14f32b52c68fabcfd3be': Cancelling the stateannouncer when entering button drop target
| * | Cancelling the stateannouncer when entering button drop targetSunny Goyal2015-09-251-0/+3
| |/ | | | | | | Change-Id: Ia10298e1d4862fc5f46894fa6d934207d6e9c117
* | resolved conflicts for e78e3d73 to ub-launcher3-masterSunny Goyal2015-09-251-0/+2
|\| | | | | | | Change-Id: Idc119a57e21cf6016ee0fd91866839301db072d6
| * Accessibility fixesSunny Goyal2015-09-251-0/+2
| | | | | | | | | | | | | | | | | | | | | | 1) Use a different content description for temporary new page 2) Use different accessibility description for add widget toast 3) Announce when an item is deleted 4) Announce when hovering over a drop target 5) Announce state during drag-n-drop and widget resize (similar to seekbar) Bug: 23573321, 24057944 Change-Id: Icabb317625e70c78e11c0b4f99b9339172d93594
* | Added BaseDropTargetBar, which SearchDropTargetBar extends.Tony Wickham2015-09-151-6/+6
| | | | | | | | | | | | This is to allow for a future AppInfoDropTargetBar. Change-Id: I5e66129919226eaef1ba1ddb0c0c99d0a6dc48df
* | Moving drag-drop related code into a separate package.Vadim Tryshev2015-08-201-0/+3
| | | | | | | | | | | | | | | | | | This is per an earlier CR comment "we should probably move all this code to its own package (launcher3.dragndrop) in a separate cl". I'm not moving DragSource because it's referred from gsa code. Bug: 22609426 Change-Id: Ia7204dab99c0c395c66b77143a2d60411153f5f3
* | resolved conflicts for merge of 9fc953b9 to ub-launcher3-masterSunny Goyal2015-08-171-4/+4
|\| | | | | | | Change-Id: Ia3e845a2e336c846cceefdc2d1e8c6786753f1b1
| * Version code cleanupSunny Goyal2015-08-171-5/+4
| | | | | | | | | | | | | | | | > Renaming Lmp to Lollipop > Lollipop_MR1 instead of directly using 22 > Using M APIs directly instead of reflection Change-Id: I10a307f46e3be15b3299f549a2fd7e0e215a6a1b
* | Refactoring ItemInfoSunny Goyal2015-06-301-4/+3
|/ | | | | | | | > Changing dragObject to ItemInfo > Removing dropPos which is always null > Removing requiresDbUpdate which is only used in CellLayout Change-Id: I753ddaae0880c8a9bfee5a1266095ff34610284a
* Ensure that we use the system long press duration when dragging from AllApps.Winson Chung2015-06-051-6/+3
| | | | | | | - Removing some old code out of LauncherAppState Bug: 21559400 Change-Id: I3c586094efb7ad8a17d2169bc8aaccf6b0df40a2
* Removing some synthetic method creationSunny Goyal2015-06-021-1/+1
| | | | | | > Make package-private and @Thunk all private methods and constructors accessed from inner classes. Change-Id: Ie5913860a0c33e48e9bf68f9b5b1699f64c2f174
* Using color filter when animating the drop target instead to TransitionDrawableSunny Goyal2015-05-211-13/+46
| | | | | | | > No more flickering when crossfading between two bitmaps in small duration > Allows us to control the color directly without depending on the assets Change-Id: Ie7ed8bb94baf560e9b939cca624ed1bad457732c
* Setting drawable to droptarget in the code to avoid multiple drawable inflationSunny Goyal2015-05-201-25/+8
| | | | Change-Id: Ib713b3051e2707d46a4ee0090aed2db1d2e641b9
* Various lint error fixes.Sunny Goyal2015-05-141-7/+8
| | | | | | | | > Fixing some RTL errors by specifying both marginStart and marginLeft > Moving all layout direction checks to Utilities > Explicitely adding @TargetApi before every method Change-Id: Ibe9c52b93b5a6adeadb27ace2b312770fd732ea0
* Updating fling to delete animSunny Goyal2015-04-301-1/+1
| | | | Change-Id: I1c63e88b3e605113ea66afca9dcfbc30de1d4c8e
* Merge "Enabling accessibility drag and drop in folder" into ub-launcher3-burnabySunny Goyal2015-04-301-0/+3
|\
| * Enabling accessibility drag and drop in folderSunny Goyal2015-04-281-0/+3
| | | | | | | | | | | | | | | | | | | | > Moving DragAndDropAccessibilityDelegate to a separate class > Using getFocusedVirtualView() instead of using DownX and downY > Updating various accessibility strings Bug: 19776741 Change-Id: I85c2551d4d6172c30702e68f41b114bb999655b6
* | Animating dragview color change when dragging over ButtonDropTargetSunny Goyal2015-04-291-11/+38
|/ | | | Change-Id: I642438be681769812302dba0b6deca38f89f7a16
* Accessibility fixesSunny Goyal2015-04-241-2/+17
| | | | | | | | > Enabling top bar buttons in accessibility drag-drop > Unifying logic to show delete/uninstall/app-info targets > Announcing cell loction as 1-index instead of 0-index Change-Id: Ibc7801f77e938b2646f0655462cbe9b7f781818b
* Updating drop button targetsSunny Goyal2015-04-161-18/+114
| | | | | | | | > Splitting DeleteDropTarget into delete and uninstall > Showing UninstallDropTarget for app shortcuts on workspace > Showing InfoDropTarget only when developer options is enabled Change-Id: I4396571d2199d1581bb9c733aef88ab9b0ebd79d
* Revert "Adding debugging and naive fix for issue 15334203"Adam Cohen2014-06-041-1/+0
| | | | | | This reverts commit ed11c14003ca4ae5f702b6eb3f6b5dd8f4e7d4a4. Change-Id: Ifc46769477e590512cc5ab79a69063c0341f52b2
* Adding debugging and naive fix for issue 15334203Adam Cohen2014-06-031-0/+1
| | | | | | -> To be reverted, just need signed build. Change-Id: I6a83e55067d8d2564bb3c4f0c314befbb2793f09
* Clean up importsMichael Jurka2013-12-131-2/+0
|
* Fixing issue where migration all apps folder couldn't be picked up.Winson Chung2013-07-121-0/+4
| | | | | | | - Ensuring that we add items to the non-primary home page - Fixing issue with drop-target touch handling on tablets Change-Id: Iea5a383dc735a8f6044a00982f05789f8328ab63
* Porting PagedView from KG to gain simplified scaling model, reorderingAdam Cohen2013-07-081-6/+1
| | | | | | | | | | | | -> We are no longer scaling individual Celllayouts, instead we are scaling the entire Workspace (and the CellLayouts come along for the ride) -> Due to the above change, many assumptions were broken. In particular, our drag and drop / animation archiecture is fairly fragile due to the frequent and complex mapping of points between different bits of the hierarchy. This CL contains a number of fixes which address such breakages. Change-Id: I2e630eab17528729b764b61f587858f6499fd318
* Launcher2 is now Launcher3.Daniel Sandler2013-06-051-0/+166
Changes include - moving from com.android.launcher{,2} to com.android.launcher3 - removing wallpapers - new temporary icon Change-Id: I1eabd06059e94a8f3bdf6b620777bd1d2b7c212b