summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/dragndrop
Commit message (Collapse)AuthorAgeFilesLines
* Trebuchet: allow disabling workspace editJoey2018-02-051-1/+9
| | | | | Change-Id: I503e19cbc512eac0e4a8c8bccc16a6ccc0e805da Signed-off-by: Joey <joey@lineageos.org>
* WallpaperManagerCompat should target correct platformHyunyoung Song2017-09-112-2/+2
| | | | | | | Also replace Utilities.isAtLeastO() to static final constant. Bug: 65544683 Change-Id: I39fbea66939d72c31702748716c4e65b4f9bee6a
* Fix bug where Launcher crashes when pinned shortcut has no icon.Jon Miranda2017-08-301-1/+7
| | | | | Bug: 65187090 Change-Id: Ica5b10e640cf4ab752055da2f4e352680ab26391
* Applying the widget resize changes even when the activity is destroyedSunny Goyal2017-08-231-1/+0
| | | | | | | in the middle of the resize interaction. Bug: 64759853 Change-Id: I65ab7df0426f36fe1121bf055e38fc722822b0f4
* Remove LAUNCHER3_ALL_APPS_PULL_UPHyunyoung Song2017-08-211-1/+1
| | | | | | | | Bug: 63712253 Verified: all apps transition fully functional Verified: NO_ALL_APPS_ICON = false case also works. Change-Id: I779fb7bd4927c5923da3f85590d912dbbbcdef4d
* Fixing badge bounds incorrectly set when dragging iconSunny Goyal2017-08-071-3/+6
| | | | | Bug: 64427027 Change-Id: If57bdcab703b2cc30e8ca0c0fba0dd599792bd00
* Merge "Handle null background or foreground when dragging adaptive icons" ↵Tony Wickham2017-07-261-0/+6
|\ | | | | | | into ub-launcher3-dorval-polish2
| * Handle null background or foreground when dragging adaptive iconsTony Wickham2017-07-261-0/+6
| | | | | | | | | | Bug: 64080513 Change-Id: I5e80e8a4b4a80ebd3bc052592283eee72d59c0e2
* | Adding spring effect for folder icons when dragging similar to adaptive iconsSunny Goyal2017-07-252-18/+212
|/ | | | | Bug: 63889144 Change-Id: Idd1fd13c6343bf3e0a3a0e5ff0be730d41996575
* Adding A feature flag to disable widgets and a corresponding buildSunny Goyal2017-07-211-17/+11
| | | | | | | target Launcher3Go without widgets support Bug: 62353159 Change-Id: Ia03d2235a9bcf75f9ef191924f81630e63a2c684
* Fixing tint not getting applied when an item is dragged over a drop targetSunny Goyal2017-07-191-135/+131
| | | | | | | | | | | > Changing spring animation to use drawable instead of views. This allows us to reuse the size calculations from AdaptiveIconDrawable, instead of reimplementing the logic. > Updating tint logic to concat any existing filter and reapply it to the drawable Bug: 63873434 Change-Id: I30e97d181bd3439e5b10272d4964bad1c70ceb3c
* Fixing clip mask not getting initialized properly.Sunny Goyal2017-07-041-1/+1
| | | | | | | | | | Before initializing the clip mask, we were calling iconNormalization on the adaptive icon which was changing the bounds of the drawable (only for the first call). Instead setting the bounds of the drawable after icon normalization. Bug: 63010770 Change-Id: I028d1e38a0d8c4001286d343e107637cf307c4a4
* Fixing drag outline not getting drawn when the shortcuts popup is shown.Hyunyoung Song2017-06-261-3/+3
| | | | | | | | | | Shortucts popup uses predrag listener to manage the transient state of the icon. Fixing the order of PredragListener, such that predragEnd gets called before dragStart. This allows the transient state to be cleared before any other state changes are done by onDragStart. Bug: 62544416 Change-Id: I77c9a1aa17a15fe6f9f342af7a7fe3092a9d026b
* Merge "Adding support in IconProvider for loading different icons for UI and ↵TreeHugger Robot2017-06-231-1/+1
|\ | | | | | | model use" into ub-launcher3-dorval-polish
| * Adding support in IconProvider for loading different icons for UI and model useSunny Goyal2017-06-221-1/+1
| | | | | | | | | | Bug: 62900800 Change-Id: I86e2d77efc7e5fc85b59cf18e634546d098d138f
* | Merge "Fixing PinItemActivity not getting dismissed when starting ↵TreeHugger Robot2017-06-221-0/+11
|\ \ | |/ |/| | | drag-and-drop in multi-window mode" into ub-launcher3-dorval-polish
| * Fixing PinItemActivity not getting dismissed when starting drag-and-drop in ↵Sunny Goyal2017-06-221-0/+11
| | | | | | | | | | | | multi-window mode Change-Id: Ic5a74dab7cc374efcd32d4c73faa9eb28e9327a4
* | Properly desaturating the dragview if the icon is disabledSunny Goyal2017-06-211-0/+10
|/ | | | Change-Id: Ic53078750fab013ed07999c6e9a6bf5d9b4c2554
* Enabling spring effect during drag-n-drop on deep shortcutsSunny Goyal2017-06-211-9/+78
| | | | Change-Id: Iac128e850c41c0946d28e1ee8824ce8a62b4c395
* Fixing scale calculation for spring effect on drag viewSunny Goyal2017-06-211-43/+61
| | | | | | | | Bug: 62823315 > Using the scale value from IconNormalizer > Using the badge from packageManager (similar to launcher icons) Change-Id: I7cc65be8619281986c2c26a66c6de40636f12256
* Merge "Adaptive icon fetched from icon provider and/or work profile icon ↵TreeHugger Robot2017-06-211-40/+69
|\ | | | | | | should not change during DnD Bug: 62806605 Bug: 62823315" into ub-launcher3-dorval-polish
| * Adaptive icon fetched from icon provider and/or work profile icon should not ↵Hyunyoung Song2017-06-211-40/+69
| | | | | | | | | | | | | | | | | | change during DnD Bug: 62806605 Bug: 62823315 Change-Id: I2bf7c64df101e1293a2b4b416333e36244406a62
* | Refactoring PinItemDragListener into a base class to allow diffenret ↵Sunny Goyal2017-06-202-168/+225
|/ | | | | | | | | implementations of multi-window drag and drop Bug: 62702235 Change-Id: Ie87e0f7d131575bac1cb1099b0a70b230560be9a
* Add spring effect to adaptive icon foreground layerHyunyoung Song2017-06-192-8/+152
| | | | | | | | | | | | b/34841763 Note: - Tweaked values with motion designer - icon normalization fix is in - anti aliasing issue is fixed - currently only supported on app icons and not on shortcuts Change-Id: If0e2bd8d49de19c9a81bb0f88b140f170b929934
* Some cleanups in DragDriver class:Rajeev Kumar2017-06-151-9/+3
| | | | | | | | 1. Get rid of unused instance variables from DragDriver#SystemDragDriver class 2. Get rid of unnecessary ; Change-Id: I26e5c784beee7846b0929517c04c1eb26a0993e0
* Use extracted color for scrim in overview mode.Mario Bertschler2017-06-081-4/+8
| | | | Change-Id: Ia24dbf69a64cb0b84da9985a5dd78ca699e7bed1
* Dark color on super light wallpaper supportMario Bertschler2017-06-071-1/+3
| | | | Change-Id: I0fdfa9abefb72e06c45b1f635ac97e2acfa97f05
* Removing various reflection calls with final APIsSunny Goyal2017-05-224-24/+35
| | | | Change-Id: Ibf48d6015d808f86bc79ccf64e3077eb5b6ccaff
* Merge "Remove background scrim when there are no top insets." into ↵Jon Miranda2017-05-011-0/+6
|\ | | | | | | | | | | | | | | ub-launcher3-dorval am: 0b728568f1 Change-Id: I8ff077c0c5761e82e5ecd3bcd363738505d7172e
| * Remove background scrim when there are no top insets.Jon Miranda2017-05-011-0/+6
| | | | | | | | | | | | | | | | | | ie. In portrait multiwindow mode, the launcher is always on the bottom so we can remove the background scrim that is meant to protect the status bar contents. Bug: 36397512 Change-Id: Ie9655b0604b5bebafdfb4153b370bb655129051c
* | Fixing icon left on the workspace when drag operation failsSunny Goyal2017-04-171-0/+4
|\| | | | | | | | | | | am: 846d7e12c8 Change-Id: I2f4df4ab948443298fd3354cb4338ff9db4068ad
| * Fixing icon left on the workspace when drag operation failsSunny Goyal2017-04-171-0/+4
| | | | | | | | | | Bug: 37294517 Change-Id: I1982b71cdeacff9e15bfa00c03620888c2a225c8
* | Rename WidgetsAndMore to WidgetsBottomSheetTony Wickham2017-04-171-4/+4
|\| | | | | | | | | | | am: 343a77e609 Change-Id: I3d0c3e3a4ec1225781421567cfd9f2ea1d676bc0
| * Rename WidgetsAndMore to WidgetsBottomSheetTony Wickham2017-04-171-5/+4
| | | | | | | | | | | | | | (It only contains widgets now.) Bug: 35766387 Change-Id: I5864791a9741d1c56ac6df30125fe7a4a677b4bd
* | Merge "Delay the PinItemRequest#accept() call until the drop animation is ↵Sunny Goyal2017-03-301-1/+9
|\| | | | | | | | | | | | | | | finished." into ub-launcher3-dorval am: 4a907d0f9d Change-Id: Icd6d070199cd685633ead1301bda9d3e4de698c9
| * Merge "Delay the PinItemRequest#accept() call until the drop animation is ↵TreeHugger Robot2017-03-301-1/+9
| |\ | | | | | | | | | finished." into ub-launcher3-dorval
| | * Delay the PinItemRequest#accept() call until the drop animation is finished.Sunny Goyal2017-03-301-1/+9
| | | | | | | | | | | | | | | | | | | | | This prevents the caller app from taking over the focus while animation it running. Change-Id: I51b6673c59e848c263727502dee90504ed3a2162
* | | Merge "Add WidgetsAndMore bottom sheet" into ub-launcher3-dorvalTony Wickham2017-03-301-0/+7
|\| | | | | | | | | | | | | | | | | am: d73fbb5f97 Change-Id: I5d1bad3ea83e672076dbd3b6f2d80d5149f3921c
| * | Merge "Add WidgetsAndMore bottom sheet" into ub-launcher3-dorvalTony Wickham2017-03-301-0/+7
| |\ \ | | |/ | |/|
| | * Add WidgetsAndMore bottom sheetTony Wickham2017-03-301-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Contains two rows, one for widgets, and one for "configurable shortcuts" that have customization activities - Extends AbstractFloatingView and uses VerticalPullDetector for touch interactions - No way to show this currently; will add options to popup in followup Bug: 34940468 Change-Id: Iab62c2cb89428f91119c9c86f9db886496c321fd
* | | Merge "Fixing multiwindow drag operation during with rotation." into ↵Sunny Goyal2017-03-302-0/+35
|\| | | | | | | | | | | | | | | | | | | | | | | ub-launcher3-dorval am: 1188b89dc4 Change-Id: Ib2f0988d944dff201767d5e85686416aa966e96b
| * | Merge "Fixing multiwindow drag operation during with rotation." into ↵TreeHugger Robot2017-03-302-0/+35
| |\ \ | | | | | | | | | | | | ub-launcher3-dorval
| | * | Fixing multiwindow drag operation during with rotation.Sunny Goyal2017-03-282-0/+35
| | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | > Finishing activity when rotation preference change. This ensures that any prefenrece change is immediately applied instead of waiting for resume as the new activity is always started with proper setting. > Clearing task when starting drag in landscape mode. This ensures that a new activity instance is started in this case, which overrides previous locked rotation by launcher activity. > Handling drag request in onCreate and enabling rotation based on it. > Clearing any request from the launcher intent once the drag operation is complete Bug: 36226746 Change-Id: I69f56c13827c25f3e1bc84935cb2acc59b6bd349
* | | Merge "Adding logging for various interaction in PinItemRequest UI" into ↵Sunny Goyal2017-03-303-2/+43
|\| | | | | | | | | | | | | | | | | | | | | | | ub-launcher3-dorval am: c5c9cae70d Change-Id: I0be49e2a81b9ee284230672c368a03f3aaef7916
| * | Adding logging for various interaction in PinItemRequest UISunny Goyal2017-03-223-3/+46
| |/ | | | | | | | | Bug: 34766840 Change-Id: Ib29d7d4b53ab99cdf3ff253976ef55345729487b
* / Minor Refactoring only: no functional changeMario Bertschler2017-03-284-5/+3
|/ | | | | | | | - organizing imports - remove redundant modifiers on LauncherCallback interface - fix typos Change-Id: I61eb985cac7c1379b6b804a67d4f234386d3d1b4
* Adding support for showing the widget preview based on the provided RemoteViewsSunny Goyal2017-03-173-6/+120
| | | | | Bug: 35811129 Change-Id: I336e48cd00cfec2e617ac73bd8a81419b0944aa7
* Add shadow to badgesTony Wickham2017-03-011-7/+2
| | | | | | | | | | - 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
* Add basic logs for tap outside action.Jon Miranda2017-02-071-0/+4
| | | | Change-Id: I6288610b9870c3abe88794c53309b1d76dd2780f
* Add logging for notifications.Tony Wickham2017-02-071-1/+1
| | | | | | | | | | | | | - Log notification launches - Log notification swipes - Fix logDragNDrop() to only log if the pre-drag ends (so it doesn't log a long-press that only shows shortcuts without dragging). - Add shortcut rank to logs when launching deep shortcuts, where 0 is the shortcut closest to the app icon (highest rank). Bug: 34770729 Bug: 32410600 Change-Id: I99dcef9b6a71da2ef58e32397702bb137407b10f