Commit Graph

16456 Commits

Author SHA1 Message Date
Alex Chau 4f7952ead4 Use percentage scaling for overview thumbnail size
- Limit overview to screen ratio to be at max 70%
- Tuned row spacing and page spacing
- Added 2 more test activities to testOverviewForTablet to avoid dismissing tasks at end of grid, as more grid tasks are now shown

Bug: 207350366
Test: manual
Change-Id: Id04871464bdb3ef2d6b046977b0ffd9bd51bc230
2021-12-07 11:00:48 +00:00
Tony Wickham 7af54403a3 Remove LauncherState.TASKBAR visible element
It's no longer used, so removing to cleanup code and reduce confusion

Test: no functional change
Fixes: 209512651
Change-Id: Ibd671bde7190df976b5365331731a55a9abdbb35
2021-12-06 15:59:39 -08:00
Becky Qiu d0a9f1502b [DO NOT MERGE] Remove one search flag and code from sc-v2.
Bug: 209501163
Test: manual
Change-Id: Iee1c8276a1f81aa0f54e8a342cfdd3f01d7ab1b7
2021-12-06 15:22:04 -08:00
Jon Miranda 986a447ee2 Merge "Play return to icon animation if user swipes back to All Apps." into sc-v2-dev am: 52ee4ec4aa am: faedc9004c
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16194658

Change-Id: If3e72442f3cd3b976d688ffef366a188683247fe
2021-12-06 19:03:41 +00:00
Brian Isganitis 111a5c5df5 Adding support for logging wallpaper container info.
Test: https://paste.googleplex.com/5350571797118976 shows logging carousel size and index of wallpaper tapped. If the wallpaper is a live wallpaper, we also log its application info.
Bug: 188222480
Change-Id: I6dd7ac20af7afd675d8a886d5b838263680f773e
2021-12-06 18:37:07 +00:00
Jon Miranda 52ee4ec4aa Merge "Play return to icon animation if user swipes back to All Apps." into sc-v2-dev 2021-12-06 18:17:52 +00:00
Alex Chau 5ec74a16f0 Merge "Add back screenshot button to Launcher3" into sc-v2-dev am: 5656154f1a am: abda7bc69c
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16365185

Change-Id: I61b276bc55eb8486828e5ee9c19251065564d56e
2021-12-06 18:06:27 +00:00
Alex Chau 5656154f1a Merge "Add back screenshot button to Launcher3" into sc-v2-dev 2021-12-06 17:37:42 +00:00
TreeHugger Robot 88dc380611 Merge "Use getMeasuredWidth instead of getWidth in setSplitIconParams" into sc-v2-dev am: ad890ac5af am: 4e36642c01
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16388226

Change-Id: I53adc3f81e4de6296d7c2f8e76696f33c01e2508
2021-12-03 21:01:09 +00:00
TreeHugger Robot ad890ac5af Merge "Use getMeasuredWidth instead of getWidth in setSplitIconParams" into sc-v2-dev 2021-12-03 20:23:58 +00:00
TreeHugger Robot 694de39d05 Merge "Constraint Snackbar's width to 504dp" into sc-v2-dev am: 3013c7ecf5 am: c0f7659683
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16388221

Change-Id: I91594935a8e2823b7116fc649581be04160b8295
2021-12-03 19:52:18 +00:00
Alex Chau 4bdf8c1754 Use getMeasuredWidth instead of getWidth in setSplitIconParams
Fix: 208647202
Test: Enter overview with app pairs, rotate and rotate back, check the task icon
Change-Id: I14914258a2508cf3f399312f4c88574b27a5e9fa
2021-12-03 18:28:38 +00:00
Alex Chau dc73072797 Constraint Snackbar's width to 504dp
Fix: 209005185
Test: manual
Change-Id: I512ddb575a9fced4bf2608806aef875fe34304e6
2021-12-03 16:20:42 +00:00
Alex Chau eef3ed6628 Merge "Destroy activity/view references to avoid memory leak" into sc-v2-dev am: 683b4cd824 am: f1c38718d5
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16365768

Change-Id: I0144c29e4ca9e0ea04d831f4473b4fd6ccf21a8f
2021-12-03 12:57:05 +00:00
Alex Chau 1bf0fe1b70 Add back screenshot button to Launcher3
- Also make spacing between buttons always 36dp
- Updated screenshot button image for Launcher3

Fix: 208384949
Test: Start overview in Launcher3WithQuickStep, test screenshot button is working
Change-Id: Ieb60ce134813202c1d14137fff0a131e1f5f8c96
2021-12-03 12:32:29 +00:00
Alex Chau 683b4cd824 Merge "Destroy activity/view references to avoid memory leak" into sc-v2-dev 2021-12-03 12:30:49 +00:00
Sunny Goyal 331e6e94f9 Merge "Updating icon badging logic" 2021-12-03 02:14:42 +00:00
Vinit Nayak 573fca80f6 Destroy activity/view references to avoid memory leak
Bug: 204891006
Change-Id: If60ac1716c30ebe68fb6e7457d71f542d3075422
2021-12-02 16:05:52 -08:00
TreeHugger Robot f30a999841 Merge "Add icons for staged split" into sc-v2-dev am: 7f54d5cde4 am: 0dc5a85eb5
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16374164

Change-Id: I3103d1d423910686d049d72f399bfdf1eb0539ee
2021-12-02 23:36:33 +00:00
Alex Chau 2cbe70a386 Merge "Fix switch access for overview grid" into sc-v2-dev am: b31176c83b am: e5449f5468
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16346361

Change-Id: I9488154c6e53fa0ba111e2041619b5e49d9c81c8
2021-12-02 23:06:26 +00:00
TreeHugger Robot 7f54d5cde4 Merge "Add icons for staged split" into sc-v2-dev 2021-12-02 23:00:48 +00:00
Alex Chau b31176c83b Merge "Fix switch access for overview grid" into sc-v2-dev 2021-12-02 22:32:01 +00:00
Sunny Goyal d872a97bd0 Updating icon badging logic
Bug: 201682172
Test: Manual
Change-Id: I57421b0c77e12f1cd464e532d2a1383c2cf93981
2021-12-02 22:14:25 +00:00
Vinit Nayak 455197bf41 Add icons for staged split
Fixes: 208649953
Change-Id: I8b7bb3a650e836608ebe6aa50631026f5f6a7c63
2021-12-01 14:58:53 -08:00
Brian Isganitis f39dd101d2 Merge "Make action optional for snackbar." into sc-v2-dev am: be388b8933 am: ed93efc254
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16276192

Change-Id: Ie92169847061b954f3efd4658909bb25942fefa9
2021-12-01 00:48:13 +00:00
Brian Isganitis be388b8933 Merge "Make action optional for snackbar." into sc-v2-dev 2021-12-01 00:18:40 +00:00
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
Thiru Ramasamy 24fbda5448 Set default value for rank field in launcher logs to ItemInfo.rank.
Bug: 188222480
Test: wwdebug & wwlogcat
Change-Id: I16786eb2e6f1d4ce44dbda5eff27b1cd7f50ee8e
2021-11-29 16:14:02 -08: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
Alex Chau 9ead9ca226 Fix switch access for overview grid
- Removed overscroll checking in switch access, as overscroll isn't supported via snapToPage
- Don't show forward/backward action if no further scroll is possible
- When scrolling right in overveiw grid, snap to the next non-fully visible task
- When scrolling left in overview grid, snap to a position that next non-fully visible task is on the left of the screen

Fix: 204162346
Test: Use switch action in Workspace/Recents with and w/o RTL
Change-Id: I0d4f201edf2da543703e88420e6f3255fb2ba16f
2021-11-26 17:51:32 +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