Commit Graph

13176 Commits

Author SHA1 Message Date
TreeHugger Robot d55644d3af Merge "Add shortcut drag/drop support to the taskbar." 2021-12-01 00:17:59 +00:00
TreeHugger Robot 6269a7aedb Merge "Refactor LauncherAccessibilityDelegate so it can be used outside of Launcher" 2021-11-30 23:29:43 +00:00
Schneider Victor-tulias 5e91cbe069 Add shortcut drag/drop support to the taskbar.
- Added support for shortcut drag/drop
- Added support for popup menu shortcut drag/drop

Test: long pressed taskbar and launcher icons. long pressed taskbar and launcher shortcuts and popup menu shortcuts.
Fixes: 204453506
Bug: 198438631
Change-Id: I09cab335dcbb3a2bfa3020b21f4bcffff9c53e61
2021-11-30 13:52:55 -08:00
Schneider Victor-tulias c817dac4cd Merge ag/16307859 into master without bug fix.
- Copied ag/16307859, with a modification to QuickstepModelDelegate#getContainer. This allows the crash from b/173838775 to continue occuring with additional debuging logs.

Bug: 173838775
Test: manual
Change-Id: Ic96a25665457c80f5c9ab45a896fada34a3a68ff
2021-11-30 12:08:23 -08:00
Jonathan Miranda eaacedad92 Merge "Fix NPE in FloatingIconView" into sc-v2-dev am: 199644c397 am: b32723a073
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16307843

Change-Id: Ia7042e276a46cf0585376e36ac62d5f53ef5bd6f
2021-11-30 19:07:04 +00:00
TreeHugger Robot 41e7174cb8 Merge "Fling to close tasks in the GestureNav can be too small." into sc-v2-dev am: 96f34af124 am: 0a3ae68934
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16170178

Change-Id: I05cd240dcb21a526614fde03ad5423cb3f27cfcf
2021-11-30 19:05:22 +00:00
Jonathan Miranda 199644c397 Merge "Fix NPE in FloatingIconView" into sc-v2-dev 2021-11-30 18:43:29 +00:00
TreeHugger Robot 96f34af124 Merge "Fling to close tasks in the GestureNav can be too small." into sc-v2-dev 2021-11-30 18:34:09 +00:00
Schneider Victor-tulias 8664cb1261 Revert "Fix ClassCastException in QuickstepModelDelegate"
This reverts commit 380f8fd890.

Reason for revert: remove bug fix on master

Bug: 173838775
Change-Id: I3cbb3e383c52095a10b3e22ea4c586c0c3c8d7a9
2021-11-29 22:34:04 +00:00
Samuel Fufa 4a4092dea5 Merge "Introduce COLLECT_SEARCH_HISTORY flag" 2021-11-29 18:37:20 +00:00
TreeHugger Robot ed995a3e68 Merge "Resets taskSplitTranslation of inactive orientation" into sc-v2-dev am: c5f18aa980 am: b73701ad92
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16343601

Change-Id: I6e6a0ab952578193ca4ded1c2e7cf83f1897f070
2021-11-26 18:52:28 +00:00
TreeHugger Robot c5f18aa980 Merge "Resets taskSplitTranslation of inactive orientation" into sc-v2-dev 2021-11-26 18:23:43 +00:00
Thales Lima 90e43f5045 Merge "launcher: use same icon size for all apps drawer in foldables" into sc-v2-dev am: d9d7f7214a am: 68c8db9134
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16131869

Change-Id: I1ad73112dd076d846c75c1cf0697604abe43914e
2021-11-26 15:41:14 +00:00
Thales Lima d9d7f7214a Merge "launcher: use same icon size for all apps drawer in foldables" into sc-v2-dev 2021-11-26 15:10:03 +00:00
Thales Lima 6e0005af6b launcher: use same icon size for all apps drawer in foldables
For foldables, no matter the grid size, we use 60dp for icons sizes.
This also fix a bug where the icon size was always the minimum between
default and all apps, which means that for foldables it would always be
default.

Bug: 202708085
Test: visual, using HSV and Window
Change-Id: I315718a8ba7a0aaed2204ad12e6b184dda2be48e
2021-11-26 10:03:43 -03:00
Alex Chau 9a5f99bfe6 Resets taskSplitTranslation of inactive orientation
Fix: 204185003
Test: manual

Change-Id: I10e49994e8a9723f39d7f9159de7c1f8216ea77f
2021-11-26 12:04:47 +00:00
Jerry Chang 79b384b053 Merge "Support to launch app pair from overview with recorded split ratio." into sc-v2-dev am: 71b7d1537d am: 925b1c3fca
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16331944

Change-Id: I5e9eec07c468c19d23e9511771072c29fa7b3eae
2021-11-26 06:07:53 +00:00
Jerry Chang 71b7d1537d Merge "Support to launch app pair from overview with recorded split ratio." into sc-v2-dev 2021-11-26 05:43:34 +00:00
TreeHugger Robot 4a677ed4cb Merge "Fix ClassCastException in QuickstepModelDelegate" into sc-v2-dev am: 32ebd9f94f am: cfa85344b4
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16307859

Change-Id: Iae1d568de658269b2abe7a7a52ba7225fb693f30
2021-11-25 04:40:53 +00:00
TreeHugger Robot 32ebd9f94f Merge "Fix ClassCastException in QuickstepModelDelegate" into sc-v2-dev 2021-11-25 04:00:37 +00:00
Jerry Chang 279c3b7fa2 Support to launch app pair from overview with recorded split ratio.
Bug: 207479945
Test: Quickswitch back to app pair keep split ratio
Change-Id: Id24195c15fe59053cc51515a942f72c3b8e87ba7
2021-11-25 11:38:14 +08:00
Schneider Victor-tulias 380f8fd890 Fix ClassCastException in QuickstepModelDelegate
- Added a casting check as an immediate fix to b/173838775
- Added logging to help debug the corrupt state where an item of type other than FolderInfo is used as an other item's container.
- Added LoaderMemoryLogger for adding large logs that are only conditionally printed.

Bug: 173838775
Test: manually checked logs
Change-Id: I9491cb421b9fb807d5fb110b04ad069481de768f
2021-11-24 14:26:45 -08:00
Alex Chau f3c6e6fcf3 Merge "Consider two panel in home to overview transition" into sc-v2-dev am: 376b09ade2 am: 07cbd6659f
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16330826

Change-Id: I45a672b684a2857e92aa9ea829be487fa915c152
2021-11-24 21:07:45 +00:00
Alex Chau 376b09ade2 Merge "Consider two panel in home to overview transition" into sc-v2-dev 2021-11-24 20:33:32 +00:00
Tony Wickham a930bca528 Merge "Stash taskbar when IME is present, including during gestures" into sc-v2-dev am: b4aefc1277 am: cc6b8488bf
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16325264

Change-Id: I7c71ae9aa8c949907286c31a2e6c75871e599ec7
2021-11-24 18:27:32 +00:00
Alex Chau 6095333370 Consider two panel in home to overview transition
- Get the value from DeviceProfile directly

Fix: 202444558
Test: manual
Change-Id: Ifadbbf34c8103d7275b8b4043dcae47d1168ae83
2021-11-24 18:11:45 +00:00
Tony Wickham b4aefc1277 Merge "Stash taskbar when IME is present, including during gestures" into sc-v2-dev 2021-11-24 17:54:18 +00:00
Tony Wickham 821e37b447 Stash taskbar when IME is present, including during gestures
- SysUI removes SYSUI_STATE_IME_SHOWING when starting a gesture from an app, but because unstashing has implications on the gesture transition (e.g. clips the bottom of the app), we defer handling the ime hiding until the gesture settles. Repurposed the flow that swaps the taskbar background during the gesture to support this case as well.
- Delay the unstash when IME is closing, to align with the end of the IME exit transition
- Remove TaskbarViewController.ALPHA_INDEX_IME now that we stash when IME is opening, since stashing already hides the taskbar icons
- Also support passing a starting progress to the stashed handle reveal animation, to allow it to be reversed when cancelled. For example, when returning to an app that has IME showing, we first start unstashing because we're in an app, but then we get the signal that IME is attached so we stash again almost immediately (within a frame or two).

Test: In both 3 button and fully gestural, open a keyboard in an app, ensure taskbar gets out of the way and then reappears at the end when the keyboard is dismissed
Bug: 202511986
Change-Id: I93c298a98ba369ea6310466ff3f802231c582687
2021-11-23 16:37:06 -08:00
Winson Chung cc60ff2fff Merge "Removing logs" into sc-v2-dev am: c1afaa4042 am: c0098a8628
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16248600

Change-Id: Id59fc54915e3f0c54d38904dff7c62d3c937e028
2021-11-23 22:23:39 +00:00
Winson Chung c1afaa4042 Merge "Removing logs" into sc-v2-dev 2021-11-23 21:58:14 +00:00
Schneider Victor-tulias bdb0dd8cfb Refactor LauncherAccessibilityDelegate so it can be used outside of Launcher
Bug: 198438631
Test: used talkback on launcher
Change-Id: I991320184ad93816c4ba21fb8fcfe12202bfae25
2021-11-23 12:48:14 -08:00
Vinit Nayak 9119e1fab3 Merge "Show multiple App Info A11y options for split app icons" into sc-v2-dev am: 458832c09e am: f36ba262a8
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16301835

Change-Id: I8fbd6a4122cd1741f7e0c6a6842b0726ca9ec9cf
2021-11-23 20:33:28 +00:00
Vinit Nayak 458832c09e Merge "Show multiple App Info A11y options for split app icons" into sc-v2-dev 2021-11-23 20:09:47 +00:00
Alex Chau 7c6ef08dd2 Merge "Consider launching task's position on screen in pivot calculation" into sc-v2-dev am: 48644c75b3 am: 97c12c8b72
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16306378

Change-Id: Ib92ae0899d08411ce07ddac36cae0f6d4466723d
2021-11-22 21:36:00 +00:00
Alex Chau 48644c75b3 Merge "Consider launching task's position on screen in pivot calculation" into sc-v2-dev 2021-11-22 21:07:41 +00:00
Alex Chau f9c9986c01 Log the display state when number of screen bounds is inconsistent am: 4f49c9ce62 am: 04068586d4
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16230738

Change-Id: If21c6b2ebfef0dfd813689087cc65ed5ecb72f29
2021-11-22 17:42:35 +00:00
Alex Chau 4f49c9ce62 Log the display state when number of screen bounds is inconsistent
- If the number of screen bounds a.k.a. number of displays has changed, it should be a bug from system and add a log for that

Bug: 198965093
Test: manual
Change-Id: I74612e6c0d2f3cfd52b509e43ea16adf0eec76de
2021-11-22 15:16:17 +00:00
Alex Chau a0aa9ac6e4 Merge "Remove temporary logging for NO_SCREENSHOT bug/." into sc-v2-dev am: 3c2298668a am: 0c59f1ac7b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16307753

Change-Id: I2c49271d01922df710d53f1d52090ed0c1593880
2021-11-22 11:35:51 +00:00
Zak Cohen d95942132d Remove temporary logging for NO_SCREENSHOT bug/.
Bug: 202414125, 203583301
Test: Local
Change-Id: I8345bd9f1c3ee93971d64ed49cf613cfd09ce10c
2021-11-19 13:49:36 -08:00
Jon Miranda 73a7e1ce41 Fix NPE in FloatingIconView
Happens when view is reset before animation starts

Bug: 201946253
Test: manual
Change-Id: I62817f698996dc1c6bebcd038d01eb8d6923a305
2021-11-19 13:40:59 -08:00
Alex Chau af43216f0d Merge "Use only current density to check isTablet" into sc-v2-dev am: 7ba828c1a9 am: 8d3d6b1961
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16306379

Change-Id: I66dd05d8c193cebfafa2095f986d8ea2bc3f9c57
2021-11-19 20:58:15 +00:00
Alex Chau 2998307cd6 Use only current density to check isTablet
- Removed DeviceProfile.allowRotation and use DeviceProfile.isTablet instead, which only uses current density to calculate its value
- Reverted default allow_rotation preference handling to before ag/14234761

Fix: 203817448
Test: isTablet is set correctly in different screen sizes
Change-Id: Ic6c8dfc774e7787f62d489ad27720a7644c1e8c7
2021-11-19 15:27:01 +00:00
Alex Chau 6499e83c57 Consider launching task's position on screen in pivot calculation
- Instead of using RecentsViewScroll, put task's position offset versus current scroll as TaskRect calculation, so it's considered when calculating for putting task to full screen
- Revert back RecentsViewScroll to apply before RecentsViewScale
- Added new property in PagedOrientationHandler to apply both primary/secondary param without clearing the other, and renamed an existing method

Fix: 206972618
Test: Quick switching
Test: Launch task from grid, launch side task from carousel overview
Change-Id: I5977975ed1e930ad70b81d83513d8f3a00c0aed4
2021-11-19 14:42:20 +00:00
Vinit Nayak f957244b88 Show multiple App Info A11y options for split app icons
* AccessibilityNode actions are required to have a
unique resourceId to show as an action in A11y dialog.
For now, only AppInfo option is shown for each app in split,
but moving forward we'll need to add resourceIDs for
each option that can show up for either app.

Fixes: 200609838
Test: Saw multiple options for App Info for each app
come up in talkback mode

Change-Id: I92b349347354ac639537021d775eea814c866a0e
2021-11-18 23:22:46 -08:00
Pratyush dbee088fa2 Merge "Making second argument configurable in wallpaper intent function" 2021-11-19 06:53:55 +00:00
sfufa@google.com 2f0c1e6e30 Introduce COLLECT_SEARCH_HISTORY flag
Bug: 206119524
Test: Manual
Change-Id: I28b43fffcc2e48c852c91b44e9659ffa66d19999
2021-11-18 14:23:29 -08:00
Schneider Victor-tulias 8cd8695a78 Merge "Add TODO to fix b/206508141 before removing or changing the default value to the feature flag ENABLE_LOCAL_COLOR_POPUPS" into sc-v2-dev am: ce740c832c am: 4e9a31bdc9
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16285925

Change-Id: Iff67f78518ecdf14671d535fd92c7ea06c1d68ee
2021-11-18 19:18:00 +00:00
Schneider Victor-tulias ce740c832c Merge "Add TODO to fix b/206508141 before removing or changing the default value to the feature flag ENABLE_LOCAL_COLOR_POPUPS" into sc-v2-dev 2021-11-18 18:45:16 +00:00
Thales Lima 29df4a92de Merge "open grid task menu to the right of icon" into sc-v2-dev am: bd1aec6721 am: 86f23841c2
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16248618

Change-Id: Ic2fa8bd603abd46f1fcf5d9a1234f1e2ff798e61
2021-11-18 18:42:11 +00:00
Thales Lima bd1aec6721 Merge "open grid task menu to the right of icon" into sc-v2-dev 2021-11-18 18:19:58 +00:00