Commit Graph

13735 Commits

Author SHA1 Message Date
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
Vinit Nayak af6b85e3bc Show multiple icons for GroupedTaskView
* Hide all overview actions for GroupedTaskView
* Move some logic from TaskView into respective
PagedOrientationHandlers
* Remove unused methods from PagedOrientationHandler
* NOTE this is just visual changes. Properly showing
task menu's is still in-progress

Bug: 181704764
Test: Tested GroupedTaskView in portrait/landscape,
fake landscape in small screen, and real portrait/landscape
in large screen

Change-Id: I9c13ca114024db0a8e3fa5d295951696adb8516f
2021-09-17 10:16:56 -07:00
Thales Lima 5f8bbcd552 Merge "launcher: use scalable grid in 4x4" into sc-v2-dev 2021-09-17 16:42:24 +00:00
Thales Lima d1df5fcaac launcher: use scalable grid in 4x4
Many changes are required to make scalable displays work correctly on
foldables. This first one is making sure that the correct number of
columns is used when calculating the used width for scalable grid. The
spaces around the workspace are not final yet.

Bug: 191879424
Test: manual
Change-Id: Idc41ed004580f1f86d8f9595d005abc72301b1e3
2021-09-17 10:43:42 +01:00
Tracy Zhou 088ec093e5 Merge "Stash the bar after settling in Overview" into sc-v2-dev 2021-09-16 23:15:53 +00:00
Schneider Victor-tulias 68fb416b1a Allow icon add animations when user touches the screen.
Fixes: 199483081
Test: manual, repeatedly tapped screen until and while app icon was added, repeatedly changed pages until and while app icon was added
Change-Id: I286b52527dfe6e5bfdfedbbbf1eed72061fb5599
2021-09-16 13:24:01 -07:00
Brian Isganitis a682cda639 Merge "Add CONTAINER_WALLPAPERS for storing wallpaper info." into sc-v2-dev 2021-09-16 19:37:48 +00:00
TreeHugger Robot 6d20c75209 Merge "[Search] Apply background to entire SearchInput view instead of just EditText" into sc-v2-dev am: 7b5aedc72d am: b691132252
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15806806

Change-Id: I3115778ad0131dad542b12137d01314878299096
2021-09-16 17:26:02 +00:00
TreeHugger Robot f74c7a737d Merge "Scroll AllApps to top when new padding is set." into sc-v2-dev am: 460e2c4299 am: a53e01e42d
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15779369

Change-Id: I1244f3cec5d693a2493c35cb3fc16a5d6ecceb46
2021-09-16 17:25:51 +00:00
TreeHugger Robot 7b5aedc72d Merge "[Search] Apply background to entire SearchInput view instead of just EditText" into sc-v2-dev 2021-09-16 17:11:52 +00:00
András Klöczl a635b03120 Merge "Add logging to catch rare launcher wipe issue" into sc-v2-dev am: 25e84690b3 am: 2fffff7ad7
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15839769

Change-Id: Ibace54d3e846bebf515e9ae9f5874477e50da19d
2021-09-16 17:03:16 +00:00
TreeHugger Robot 460e2c4299 Merge "Scroll AllApps to top when new padding is set." into sc-v2-dev 2021-09-16 17:01:22 +00:00
András Klöczl 25e84690b3 Merge "Add logging to catch rare launcher wipe issue" into sc-v2-dev 2021-09-16 16:29:11 +00:00
Andras Kloczl 971da6c3aa Add logging to catch rare launcher wipe issue
Test: not necessary
Bug: 200010396
Change-Id: If7c478e220c2c0ee9f6479b18bf05bf39811b451
2021-09-16 17:26:04 +01:00
Tracy Zhou 308851d866 Stash the bar after settling in Overview
Test: https://recall.googleplex.com/projects/81822932-8526-4ee7-b5f7-4ef6d6603f1d/sessions/f0f7a3db-76b6-4f60-87e8-8918bd6cf180
Bug: 193938970
Change-Id: Ic08d3156f5c78a34f353783b760d5cf098e442e8
2021-09-16 00:06:47 -07:00
TreeHugger Robot b4d682ab87 Merge changes from topic "launcher-loading" into sc-v2-dev am: ca1ee7a161 am: b39c4e28e6
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15616248

Change-Id: Iac502320cec13689ba1fbb372f4869960020c857
2021-09-16 04:49:49 +00:00
TreeHugger Robot ca1ee7a161 Merge changes from topic "launcher-loading" into sc-v2-dev
* changes:
  Improve workspace loading times.
  Add tracing to help in launcher load time profiling.
2021-09-16 04:24:23 +00:00
synch 4ca16e1bb1 extract text conversions from composing text and send them for search
Bug: 196294479
Test: manually
Change-Id: Iba9f1097b6ab8ef1339979ca2a0b4e26cd07144c
2021-09-16 09:55:59 +08:00
Schneider Victor-tulias b988ab77cb Improve workspace loading times.
Updated loadWorkspace to load all required icons in a series of bulk sql queries. This reduces the cost of SQL lookups (up to two lookups per user, rather than one lookup per icon)

Bug: 195674813
Test: Added all icons to workspace, added duplicate icons, added icons for same component name from different users

Change-Id: I56afaa04e7c7701f0d3c86b31c53f578dfa73fe6
2021-09-15 17:09:06 -07:00
Schneider Victor-tulias 927d6dcc6c Add tracing to help in launcher load time profiling.
Bug: 195674813
Test: None
Change-Id: I895a64bbba515ce7b7df8d093d40e0a5b6056d2e
2021-09-15 17:08:53 -07:00
Samuel Fufa 2397d60074 Scroll AllApps to top when new padding is set.
Bug: 198212488
Test: presubmit
Change-Id: I084939e3c7685531c56b1478887fd872e0e101e9
2021-09-15 14:40:39 -07:00
TreeHugger Robot 1b16b5ada6 Merge "Removing unused tracing" into sc-v2-dev am: da76a1defd am: d2280210f4
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15826736

Change-Id: If2c353af3a0a68913d0e42bd090e9441dc5e0242
2021-09-15 20:58:53 +00:00