Commit Graph

49925 Commits

Author SHA1 Message Date
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
TreeHugger Robot 6f23f8db58 Merge "[Search] Sync header Y translation with AllApps y scroll" into sc-v2-dev am: 3b90e1099b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15862034

Change-Id: I3d253d4a724515b5ec9b1401959f57bb5236ce1e
2021-09-21 21:07:14 +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
Vinit Nayak b0ca4b3070 Merge "Prevent focusing next task if focused task part of split select" into sc-v2-dev am: 5f412199ad am: 0ada7824c1
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15854777

Change-Id: I5fd527ce8f4d20a4c915fc6a15e6f1ee00d5d8e6
2021-09-21 17:56:14 +00:00
Vinit Nayak 0ada7824c1 Merge "Prevent focusing next task if focused task part of split select" into sc-v2-dev am: 5f412199ad
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15854777

Change-Id: I474126fe11984793006c8c07529c89d409621a58
2021-09-21 17:41:54 +00:00
Vinit Nayak 5f412199ad Merge "Prevent focusing next task if focused task part of split select" into sc-v2-dev 2021-09-21 17:28:01 +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 8bc27a7ee2 Merge changes I675dbe99,Ia6daa741 into sc-v2-dev am: 139dee45dd
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15862033

Change-Id: I3ef3b561f2c76e5e4c069af751477ae83e11fcb7
2021-09-21 16:52:31 +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 922c1182e0 Merge "Take panel count into account for page indicator size" into sc-v2-dev am: be34ef61a3
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15873888

Change-Id: I68382a61ec6e2524c012391b6c8c903cd6b36dfb
2021-09-21 15:56:38 +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 407587b721 Merge "Add an animation for invalid widget resizing in 2 panel UI" into sc-v2-dev am: 3bbebe2439
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15828712

Change-Id: I0847d3d3366bbc81ebe1299c294f5110311a5586
2021-09-21 10:02:53 +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
sfufa@google.com 5b38ff6d16 [Hotseat] Fix hotseat edu flicker
When edu view animation is not started in closed state, it results in a single frame showing right before the animation begins.

Bug: 184610272
Test: visual
Change-Id: I675dbe9927771f4b64d1d81c637f19621037b415
2021-09-21 01:50:41 -07: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 a4c1891723 Merge "[Hotseat] Fix hotseat migration in landscape mode" into sc-v2-dev am: cf175820c4 am: fb0bd63b32
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15862162

Change-Id: I5f465b7078b4ae35521678b88fff0613c80b3ba7
2021-09-21 07:01:37 +00:00
Samuel Fufa 8998a393b0 Merge "[Hotseat] Fix legacy shortcut with config activity drawing on top of predicted app" into sc-v2-dev am: e4057e628c
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15864327

Change-Id: Ic5165aeabf619e649f3a9291bf64c689644c6c0b
2021-09-21 06:48:59 +00:00
Samuel Fufa fb0bd63b32 Merge "[Hotseat] Fix hotseat migration in landscape mode" into sc-v2-dev am: cf175820c4
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15862162

Change-Id: I8649602454a097b553e94048027d772c68a14941
2021-09-21 06:48:53 +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 cf175820c4 Merge "[Hotseat] Fix hotseat migration in landscape mode" into sc-v2-dev 2021-09-21 06:24:37 +00:00
vadimt 99479a9925 Adding screen record for a flake
Test: presubmit
Bug: 195673272
Change-Id: I3ea99f68872554d688b30bf87f595fef1538a7cb
2021-09-20 20:09:07 -07: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
Samuel Fufa d7f8c399c0 Merge "Restore hidden text on Popup close" into sc-v2-dev am: 414f17138f
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15862032

Change-Id: I3990e6c63912670c9dec452e28d7c244c9ee0daa
2021-09-21 00:21:57 +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
Android Build Coastguard Worker 73d11b4e9d Snap for 7749288 from 6173a7302b to sc-v2-release
Change-Id: Ieb2d31bead7fd6be6ab073fb10479fe7bb0900bc
2021-09-20 23:07:59 +00:00
Evan Rosky 218b8cff1d Merge "Register remote transitions on activity start" into sc-v2-dev am: 26c596b813 am: 5684dffff6
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15847881

Change-Id: I1554e3c24019525dc07b58a35307a4475d81ba1e
2021-09-20 22:56:27 +00:00
Evan Rosky 5684dffff6 Merge "Register remote transitions on activity start" into sc-v2-dev am: 26c596b813
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15847881

Change-Id: Idad928c2d632ed79a6065cc8f6ec4ebfdaaae70f
2021-09-20 22:46:45 +00:00
Evan Rosky 26c596b813 Merge "Register remote transitions on activity start" into sc-v2-dev 2021-09-20 22:29:57 +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 e29042026d Merge "Support Accessibility workspace addition for WorkspaceItemInfo" into sc-v2-dev am: 964c7641ad
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15868593

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

Change-Id: I9362d09b6a65d09e7e39a5f9ca3cbc4b2673d29c
2021-09-20 22:06:11 +00: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
Samuel Fufa f2a8ead524 Merge "[AllApps] Fix ConcurrentModificationException in AppPredictionRow" into sc-v2-dev am: 7f693253c8 am: 700858930d
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15862035

Change-Id: I34420cc5c0d4a1ac6cd5037b50e915ea1f5bf44a
2021-09-20 21:38:05 +00:00
Samuel Fufa 8ab7a2eb28 Merge "[Hotseat] Remove stale predictions when AppIcon is removed" into sc-v2-dev am: 091d91a84b am: de409fc30a
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15862161

Change-Id: I616fb524b3f8b95cedb450889e32e9778c56617c
2021-09-20 21:37:46 +00:00
Samuel Fufa 700858930d Merge "[AllApps] Fix ConcurrentModificationException in AppPredictionRow" into sc-v2-dev am: 7f693253c8
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15862035

Change-Id: Iec7a78c53173b4b001c2ace6cd6b26a95cb17b19
2021-09-20 21:29:23 +00:00
Samuel Fufa de409fc30a Merge "[Hotseat] Remove stale predictions when AppIcon is removed" into sc-v2-dev am: 091d91a84b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15862161

Change-Id: Ia34a8eeb0672139521e1590fa6c93b36b4a20344
2021-09-20 21:29:18 +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
sfufa@google.com ef5ee36e90 [Hotseat] Fix hotseat migration in landscape mode
Bug: 189860214
Test: performed migration in landspace and verified items are moved properly. change is persisted when device is rotated or launcher is restarted.
Change-Id: Ice088e5524a1405dbfa20c21b4edc597f23da07e
2021-09-20 14:22:24 -07:00
Samuel Fufa 7f693253c8 Merge "[AllApps] Fix ConcurrentModificationException in AppPredictionRow" into sc-v2-dev 2021-09-20 21:19:00 +00:00
Samuel Fufa 091d91a84b Merge "[Hotseat] Remove stale predictions when AppIcon is removed" into sc-v2-dev 2021-09-20 21:16:49 +00:00