Commit Graph

16456 Commits

Author SHA1 Message Date
Jonathan Miranda e37b51b30f Merge "Play window close animation to home for most app to launcher scenarios" into sc-v2-dev 2021-09-22 18:26:44 +00:00
Steven Ng 0e8a2ce0a9 Fix RecyclerViewFastScroller scrolling in widgets full sheet
See b/200132426 regarding to the bugs.

Test: manually tested full widgets picker scrolling on phone and 2
      panels UI.
Fix: 200132426
Change-Id: I13c7a7262e9357cf0acac1c2c7c069b2118bd527
2021-09-22 18:02:44 +01:00
Alex Chau 998a85e913 Merge "Keep insets stable when taskbar is destroyed/recreated" into sc-v2-dev am: 8f990b94a2 am: f6e67fb067
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15857676

Change-Id: Iac12c4380cde4270539f93a9fca552e8fd715ac8
2021-09-22 13:56:59 +00:00
Steven Ng c0bb63a113 Merge "Allow WidgetsBottomSheet to wrap its content" into sc-v2-dev am: c137171c8d am: e1cceaeb2f
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15879754

Change-Id: Iffcd6ddb045e63f44857623c4d5fd7c00a472b67
2021-09-22 13:56:53 +00:00
Alex Chau 8f990b94a2 Merge "Keep insets stable when taskbar is destroyed/recreated" into sc-v2-dev 2021-09-22 13:34:12 +00:00
Steven Ng c137171c8d Merge "Allow WidgetsBottomSheet to wrap its content" into sc-v2-dev 2021-09-22 13:31:33 +00:00
Jon Miranda 8d3d2757e2 Play window close animation to home for most app to launcher scenarios
- Animates into icon/widget location on workspace (when applicable)
- Excludes unlock animation
- Excludes when user goes back to to All Apps state

Bug: 197656197
Bug: 197450256
Bug: 197656915
Test: go in app, swipe back to land on home
Change-Id: Icdf680bd88599f1b6288822a177087283668431c
2021-09-21 20:19:23 -07:00
Jon Spivack b49500a09a Merge "P2P App Sharing: Add Shareability Cache" 2021-09-21 22:31:11 +00:00
TreeHugger Robot 2429eb6bea Merge "[Search] Sync header Y translation with AllApps y scroll" into sc-v2-dev am: 3b90e1099b am: 6f23f8db58
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15862034

Change-Id: I25821c60d97d486c0009f712aefd6183f08236ad
2021-09-21 21:17:24 +00:00
Tony Wickham 21970ccd29 Remove nonOverlappingTaskarInsets
- Override our insets in LauncherRootView to explicitly only care about nav bar size, ignoring any insets due to taskbar.
- Previously we used nonOverlappingTaskbarInsets to belatedly subtract from measurements in e.g. DeviceProfile, but now we can revert most of those calculations since we effectively subtract taskbar insets at the root.

Test: visual in different orientations and navigation modes, and testPressHomeOnAllAppsContextMenu to ensure REQUEST_WINDOW_INSETS still works for automated tests
Fixes: 200607741
Change-Id: I8de5a268c686a1354b4beaa30e101bab6bed5af9
2021-09-21 13:52:43 -07:00
Tony Wickham 7eb5b53865 Keep insets stable when taskbar is destroyed/recreated
- Calculate nav bar insets ourselves. Currently when taskbar is going to be present, we use taskbarSize as the nav bar insets. This is consistent with other existing calculations, but going forward we should instead always use the nav bar size instead of taskbar size, given we don't want taskbar to inset launcher (since taskbar is hidden).
- Also update tappable insets to be 0 in gesture mode. Test: Swipe to all apps, ensure there's no background protection at the bottom.

Test: Rotate device, no visual jumps
Test: Stash taskbar, quick switch a couple times without settling, and swipe up to overview; no jank due to reapplyState()

Bug: 198798034
Fixes: 197232424
Fixes: 197212581
Change-Id: I4c2bb5816dbb214846bd9f2a46c6f759c0545911
2021-09-21 13:52:36 -07:00
TreeHugger Robot 3b90e1099b Merge "[Search] Sync header Y translation with AllApps y scroll" into sc-v2-dev 2021-09-21 20:51:08 +00:00
TreeHugger Robot 346af60111 Merge changes I675dbe99,Ia6daa741 into sc-v2-dev am: 139dee45dd am: 8bc27a7ee2
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15862033

Change-Id: I412985630ce32cd2f544db3b5b50885405983afb
2021-09-21 17:07:01 +00:00
TreeHugger Robot 139dee45dd Merge changes I675dbe99,Ia6daa741 into sc-v2-dev
* changes:
  [Hotseat] Fix hotseat edu flicker
  [Hotseat] Show edu tip within screen bounds
2021-09-21 16:33:10 +00:00
Tony Wickham ac237fea36 Merge "Take panel count into account for page indicator size" into sc-v2-dev am: be34ef61a3 am: 922c1182e0
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15873888

Change-Id: If269012098c36d64f100a9b34dac6b2b8051b9f9
2021-09-21 16:11:21 +00:00
Tony Wickham be34ef61a3 Merge "Take panel count into account for page indicator size" into sc-v2-dev 2021-09-21 15:43:54 +00:00
Steven Ng 6e54d62abd Allow WidgetsBottomSheet to wrap its content
Test: manual. See videos in b/200036849
Fix: 200036849
Change-Id: I64bc162834c715b48a4571ee95be7543e60bd6d8
2021-09-21 16:26:26 +01:00
Steven Ng 7a3be2e933 Merge "Add an animation for invalid widget resizing in 2 panel UI" into sc-v2-dev am: 3bbebe2439 am: 407587b721
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15828712

Change-Id: Ib385b82433caf0ed8ab37e9a7785e7df72ef3174
2021-09-21 10:16:14 +00:00
Steven Ng 3bbebe2439 Merge "Add an animation for invalid widget resizing in 2 panel UI" into sc-v2-dev 2021-09-21 09:27:44 +00:00
Samuel Fufa 6ebbe4206e Merge "[Hotseat] Fix legacy shortcut with config activity drawing on top of predicted app" into sc-v2-dev am: e4057e628c am: 8998a393b0
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15864327

Change-Id: Ib5945c7fb5c3c3780a244435526bdb62ddab6752
2021-09-21 07:01:56 +00:00
Samuel Fufa e4057e628c Merge "[Hotseat] Fix legacy shortcut with config activity drawing on top of predicted app" into sc-v2-dev 2021-09-21 06:33:06 +00:00
Samuel Fufa e6ae3768cb Merge "Restore hidden text on Popup close" into sc-v2-dev am: 414f17138f am: d7f8c399c0
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15862032

Change-Id: I2c72501bb118239f342c7d6e4ff413904b5ab0b3
2021-09-21 00:36:28 +00:00
Jon Spivack 89c21c77f5 P2P App Sharing: Add Shareability Cache
This update allows Launcher to check with an external API to determine whether apps
are shareable before displaying the Share App button. To prevent
extraneous calls to the API, the retrieved shareability data
are cached. A job is scheduled to update this cache once a week.

This feature can be toggled with the ENABLE_SHAREABILITY_CHECK flag in
AppSharing.java. It is currently disabled, as the Play API has only been
partially rolled out.

More details on the design are available at go/app-shareability-cache-design

Bug: 168831749
Test: manual (local Wembley device)
Test: m -j RunLauncherGoGoogleRoboTests ROBOTEST_FILTER="AppShareabilityManagerTest|AppSharingTest"
Change-Id: I971a3776e09b6842dedf315ec592317050dd6790
2021-09-20 17:11:04 -07:00
Samuel Fufa 414f17138f Merge "Restore hidden text on Popup close" into sc-v2-dev 2021-09-21 00:10:46 +00:00
Samuel Fufa 335edad9ca Merge "Support Accessibility workspace addition for WorkspaceItemInfo" into sc-v2-dev am: 964c7641ad am: e29042026d
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15868593

Change-Id: I2a6ad1be51ead69593e06914bc64186e816c9501
2021-09-20 22:18:36 +00:00
TreeHugger Robot b357b3a4e9 Merge "[AllApps] NORMAL <-> ALL_APPS motion clean fixes for AOSP" into sc-v2-dev am: 0f4e4856a2 am: e892818d74
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15807632

Change-Id: I5f03905462e81dbc1597e6b8465850911df08ccc
2021-09-20 22:18:30 +00:00
Tony Wickham bab101c818 Take panel count into account for page indicator size
Test: on a device with 2 panels, workspace page indicator width reflects number of needed scrolls rather than number of pages.
Fixes: 200607741
Change-Id: Ic2d0bdc644a15944c2d69a832068889071dc25e2
2021-09-20 15:13:33 -07:00
Samuel Fufa 964c7641ad Merge "Support Accessibility workspace addition for WorkspaceItemInfo" into sc-v2-dev 2021-09-20 22:00:51 +00:00
TreeHugger Robot 0f4e4856a2 Merge "[AllApps] NORMAL <-> ALL_APPS motion clean fixes for AOSP" into sc-v2-dev 2021-09-20 21:50:58 +00:00
sfufa@google.com 0828fec3d2 [Hotseat] Show edu tip within screen bounds
Screenshot: https://screenshot.googleplex.com/8grkbkYQu5jQhU8
Bug: 163162675
Test: enable hotseat predictions while in landscape mode, dismiss hotseat edu dialog and verify toolTip is shown properly.
Change-Id: Ia6daa7412d728be702e30972136f4c849315793d
2021-09-20 14:22:25 -07:00
sfufa@google.com d0a332371d [Hotseat] Fix legacy shortcut with config activity drawing on top of predicted app
Bug: 182937704
Test: Add direct call widget from widget tray on a predicted spot. verify prediction clears space and no overlap.
Change-Id: Ie4977ca71ec0b7c2297ffe1454cb4a1e78518a75
2021-09-20 14:22:25 -07:00
TreeHugger Robot 006f51cb41 Merge "Workaround: don't migrate grid when hotseat size or device type changes in multi display" into sc-v2-dev am: 6173a7302b am: 0ed2edc078
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15868868

Change-Id: I87368f40a2bb220d58378c8451f3f734f64ccf09
2021-09-20 15:51:43 +00:00
TreeHugger Robot 6173a7302b Merge "Workaround: don't migrate grid when hotseat size or device type changes in multi display" into sc-v2-dev 2021-09-20 15:19:58 +00:00
Steven Ng 4b346108d1 Add an animation for invalid widget resizing in 2 panel UI
Test: manual
Fix: 197509872
Change-Id: Ibcfae107e7f4b3bfbc562d4a6436f4b9237db122
2021-09-20 15:33:23 +01:00
Alex Chau 08489f67b4 Merge "More logging for drop bar not appearing for dragged widget" into sc-v2-dev am: d2f5a91936 am: 0ba48978fd
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15858126

Change-Id: I3a4d03ad85b8494a5f790a56a480b98e601a4998
2021-09-20 12:45:35 +00:00
TreeHugger Robot 651516ecba Merge "Use ICU to format plural strings" into sc-v2-dev am: c9e7bf458f am: 3da93a868b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15819388

Change-Id: I19ce94b884bdc3fe721c57a393489265440e54fe
2021-09-20 12:35:32 +00:00
Vinit Nayak 25c913f7fe Merge "Show multiple icons for GroupedTaskView" into sc-v2-dev am: 03c13ad130 am: f94d7ca492
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15847979

Change-Id: Ib2b29b92516c6922a8cfa6f260ca280ac0f2941e
2021-09-20 12:32:44 +00:00
Thales Lima 79ebf929e6 Merge "launcher: use scalable grid in 4x4" into sc-v2-dev am: 5f8bbcd552 am: e5b9e95161
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15754333

Change-Id: I569b24b60e99bd074e6471fe9337a452a79a76c1
2021-09-20 12:29:36 +00:00
Tracy Zhou f32330c8a5 Merge "Stash the bar after settling in Overview" into sc-v2-dev am: 088ec093e5 am: d05a3d2040
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15801649

Change-Id: I8b162508cceb90e9c872e1c24afc40fa0b37f23f
2021-09-20 12:29:27 +00:00
Brian Isganitis 512f5d78d7 Merge "Add CONTAINER_WALLPAPERS for storing wallpaper info." into sc-v2-dev am: a682cda639 am: b5aa6aa28b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15749700

Change-Id: Ifbbf361ec562b0bda186687417d7e1aab6e370af
2021-09-20 11:55:49 +00:00
Alex Chau d2f5a91936 Merge "More logging for drop bar not appearing for dragged widget" into sc-v2-dev 2021-09-20 11:48:01 +00:00
Alex Chau e35ef91c3e Workaround: don't migrate grid when hotseat size or device type changes in multi display
Bug: 198965093
Test: manual
Change-Id: I804ec854b98d27717c32723028f892ca2556d327
2021-09-20 12:29:00 +01:00
sfufa@google.com 6a12ec34fb Support Accessibility workspace addition for WorkspaceItemInfo
Bug: 192678946
Test: Manual using TalkBack
Change-Id: I1d0d06ccac934eb80dba7670e93ec631c12e5074
2021-09-20 01:15:08 -07:00
sfufa@google.com 78e7b24eb7 Restore hidden text on Popup close
When handleClose is called with no animation, overridden closeComplete gets fired before mOpen is set to false inside the super class. This results in getOpenView(launcher, TYPE_ACTION_POPUP) returning self and breaking text visibility restore.

Bug: 183713889
Test: Long press on allapps/workspace item to show PopUp under it; on popup open, capture screenshot, start a sharing activity, return to launcher and verify popup dismissed and text restored.
Change-Id: Iae8d2c73e4b7f57708468bf47bb0983a30ebbddc
2021-09-20 06:21:59 +00:00
sfufa@google.com 6e91ccbe82 [Search] Sync header Y translation with AllApps y scroll
Instead of calling scrollToTop directly, calling  mHeader.reset scrolls recylcerview to top and reset headerView y translation

Bug: 195365449
Test: enable three button mode, open AllApps, slightly scroll so predictions are partially visible, tap on search box and then outside; verify AllApps is scrolled to top and header is reset appropriately.
Change-Id: I9ba7cf019cb23dd259356243dc2a6294ca5481fe
2021-09-19 22:37:06 -07:00
TreeHugger Robot c9e7bf458f Merge "Use ICU to format plural strings" into sc-v2-dev 2021-09-18 04:37:46 +00:00
vadimt 876c15aa1f More logging for drop bar not appearing for dragged widget
Test: presubmit
Bug: 195031154
Change-Id: I28673866e2c893584402081b0f61acfa2a9c88c1
2021-09-17 19:43:07 -07:00
Steven Ng 707b118184 Use ICU to format plural strings
Test: manual
Fix: 199230208
Change-Id: I0b6fe9f8bb134a1479117c832575c63da2a07794
2021-09-17 22:44:06 +01:00
Vinit Nayak 03c13ad130 Merge "Show multiple icons for GroupedTaskView" into sc-v2-dev 2021-09-17 21:27:18 +00:00
Tracy Zhou 3d458313de Hide task bar icons when notification shade is expanded
Fixes: 199163951
Test: manual
Change-Id: Id2556aa5f08db55059c95d8c13cdc4d46b7d8c55
2021-09-17 12:11:25 -07:00