summaryrefslogtreecommitdiff
path: root/quickstep/src/com/android/launcher3/taskbar/TaskbarDragController.java
AgeCommit message (Collapse)Author
2021-11-05Add popup menu and click handling to taskbar.Schneider Victor-tulias
- Added popup menu support to taskbar icons - Added item click handling for taskbar icon popup menu items Bug: 198438631 Test: long pressed taskbar icons, pressed popup menu items, dragged taskbar icons to start multi-window mode Change-Id: Ibc59c1eada50a877a863c075fbfd3e4accaae008
2021-10-28Update taskbar drag and drop treatmentTony Wickham
- Disable the FastBitmapDrawable icon instead of setting it to invisible - Suspend auto hide during drag and drop (moved to new TaskbarAutoHideSuspendController) Test: Drag and drop from taskbar and ensure the original icon stays in place but desaturated Test: Open immersive app, drag and drop from taskbar and ensure taskbar doesn't hide before drop Fixes: 200816442 Change-Id: I4b895efd043be75e7e7034bd75e751ffdd2cfdd7
2021-09-13Add logs for taskbar and overview split actionTony Wickham
Log: - Taskbar app launch (also from foldeR) - Taskbar app drag (also from folder) - Taskbar folder open - Long press to hide taskbar - Long press to show taskbar - Overview Split screen action Also add support for ActivityContext to overwrite/add to LauncherAtom.ItemInfo, which TaskbarActivityContext does to change HotseatContainer and PredictedHotseatContainer to TaskBarContainer Test: enable logcat locally Bug: 193009817 Change-Id: Ia82c846a727fecb8cbfd0a069c8af1276083bf83
2021-07-28Let TaskbarDragView scale up before switching to system drag viewTony Wickham
Test: Long press taskbar icons, ensure they aniamte the scale up Fixes: 182981908 Change-Id: I573fe66c93ebf995b3f56f2c003dee987687b6a7
2021-06-15Only inflating taskbar views for valid itemsSunny Goyal
Also enabling view cache for folders Bug: 187353581 Test: Manual Change-Id: I5bc695fd86475f30611bc6b362b4ae93c48c26bb
2021-06-03Taskbar layout updateSunny Goyal
> Calculating the hotseat padding statically > Animating taskbar views individually when animating to home instead of a layout animation > Moving all navbar buttons to a separate layout/controller and independent of Launcher > Fixing RTL layout for taskbar and nav bar Bug: 187353581 Test: Manual Change-Id: If21696f38beee328f553e467394776a8e8ed4c3e
2021-05-25Taskbar drag starts internal pre-drag before system dragTony Wickham
- TaskbarDragController now extends DragController. - Currently there is no pre-drag condition, so we immediately get onDragStart(), which starts the system global drag (which cancels the original internal drag). - Make the original view invisible during the drag and drop operation, across both internal and system drag events. - No longer handle onDragEvent() in TaskbarView, as TaskbarDragController handles all of it now. Test: Drag and drop from taskbar still works (bonus: starts from the correct registration point that you touched down on). Locally added a PreDragCondition and verified a seamless handoff to system drag and drop when the pre drag end condition was met. Bug: 182981908 Change-Id: I6bf48141a5eedfc6db6f461258e880ef8146e733
2021-05-21Revert^2 "Moving taskbar lifecycle to TouchInteractionService"Sunny Goyal
430465a3d5ff0dcdd0c2e263d862049d93075a07 Bug: 187353581 Change-Id: I7b2280d16adfafd3e85ffc1d22e32d0c00d12b67
2021-05-20Revert "Moving taskbar lifecycle to TouchInteractionService"Kholoud Mohamed
This reverts commit e215fb730bb3d4a357a2c4bf0c082d3c0ad69495. Reason for revert: DroidMonitor-triggered revert due to breakage https://android-build.googleplex.com/builds/tests/view?invocationId=I13700009003387451&testResultId=TR89423459137251402, bug https://buganizer.corp.google.com/issues/188755902 Bug: 188755902 Change-Id: I4650136975b60f311499ee6ff5b27ab9a32d23d6
2021-05-17Moving taskbar lifecycle to TouchInteractionServiceSunny Goyal
> Inflating taskbar views with a non-launcher window context > Removing separate taskbar view in Launcher > Handling taskbar icon clicks directly instead of going via launcher > Fixing some relayouts during show/hide animation Bug: 187353581 Test: Manual Change-Id: Ia7d44acbb770bf0345922234b3daa5cc040a5843
2021-03-23Remove dead taskbar codeTony Wickham
Test: Works as before Bug: 182512211 Change-Id: Id4c979f2924f9ae6881a9bed18bcc52fbd80c05b
2021-03-06Initiate Hotseat drag from long pressing corresponding Taskbar itemTony Wickham
When you long press on the taskbar hotseat item, the following happens: - We start a system drag and drop with an invisible drag shadow - We create a new DragOptions with the simulatedDndStartPoint set to the drag down position, and tell Launcher to use that for the next drag - We perform a long click on the equivalent Hotseat item in Launcher - We pass the drag events of that operation to Launcher's DragController This allows Launcher to handle the entire drag operation, including the pre-drag (with popup), and taskbar already hides when the drag starts. Test: Long press items in taskbar hotseat, able to drag them to workspace Bug: 179886115 Bug: 171917176 Change-Id: I576b80cb1bd0225cdc91cf7689fdee0481265109
2021-02-03Add recent tasks to TaskbarTony Wickham
- Also adds a divider between Hotseat and Recents - Dedupes Recents from Hotseat Test: Open some recent tasks, ensure they are deduped from Hotseat and also handle < 2 tasks. Bug: 171917176 Change-Id: Ia782c6ccbcda94cfd844aad04dc3d25a3f072c2b
2021-02-01Support drag and drop from TaskbarTony Wickham
- Long clicking a BubbleTextView in Taskbar will start a system drag and drop operation, setting the original view invisible meanwhile. - Defer gesture navigation when starting over a Taskbar item, and cancel any started gesture if a Taskbar drag and drop starts. Bug: 171917176 Change-Id: If5049071fbf1755f545ee937daa4edabd869f00d