Commit Graph

12701 Commits

Author SHA1 Message Date
Sunny Goyal 37a237b2cd Merge "Adding support for dynamic letter spacing for icon labels" into sc-v2-dev 2021-10-19 22:56:16 +00:00
Samuel Fufa c46c83c8c8 Merge "[Work Profile] Fix NPE on WorkModeSwitch" into sc-v2-dev 2021-10-19 22:01:25 +00:00
Sunny Goyal 0d69cb6ef7 Adding support for dynamic letter spacing for icon labels
Bug: 201697936
Test: Manual
Change-Id: I0ab81291c40afcac30c5caf7b5638889908775f8
2021-10-19 13:09:58 -07:00
TreeHugger Robot 06146a1944 Merge "Revert "Clear only workspace shortcut / widget related tests"" into sc-v2-dev 2021-10-19 19:56:29 +00:00
sfufa@google.com dda4f2c602 [Work Profile] Fix NPE on WorkModeSwitch
Bug: 202868251
Test: manual
Change-Id: I16e149e0aab1b53f7a0e753f353ccace08cf6b71
2021-10-19 11:22:55 -07:00
Alex Chau abf9850dea Merge "Don't apply left/right inset on gesture nav landscape" into sc-v2-dev 2021-10-19 10:24:57 +00:00
Alex Chau bbe6cf30a2 Don't apply left/right inset on gesture nav landscape
Fix: 201775630
Test: Go to landscape with gesture nav, widgets not cropped and cellSize matches HSV
Change-Id: I68e62897b31dbb8509c95a20e8d3a3528a40fe9b
2021-10-18 20:52:05 +01:00
Alex Chau 9b3dd6c0b9 Revert "Clear only workspace shortcut / widget related tests"
This reverts commit 22be1a47f4.

Reason for revert: Breaks another test
Bug: 202546679

Change-Id: I796c508a6d7c00ec8c1d48e3517453f9eca0616c
2021-10-18 17:52:12 +00:00
Tracy Zhou ae88197e5f Track LauncherState for task bar stashing better
- Animate in onStateTransitionStart
- Commit in onStateTransitionComplete

Fixes: 193938970
Fixes: 200765631
Fixes: 201644899
Test: Go home from overview; Go to all apps from home; Go to overview from home
Change-Id: I393022c86f09806fea29fb5bc7191304b473f231
2021-10-18 10:51:51 -07:00
Hyunyoung Song 32f3616f0c Merge "Enable widget picker aiai search" into sc-v2-dev 2021-10-18 17:24:53 +00:00
Samuel Fufa 4ff90a435e Merge "[Search] Hide A-Z list when search is entered from QSB" into sc-v2-dev 2021-10-16 04:28:23 +00:00
sfufa@google.com 7a620d3673 [Search] Hide A-Z list when search is entered from QSB
preview attached to bug report

Bug: 201781284
Test: manual
Change-Id: I572360d2d49b38577a7d77115aede4c3269d42e9
2021-10-15 15:49:43 -07:00
TreeHugger Robot 6a4f5427ea Merge "Clear only workspace shortcut / widget related tests" into sc-v2-dev 2021-10-15 19:38:46 +00:00
TreeHugger Robot 27e294a973 Merge "Removing overscroll pluging support" into sc-v2-dev 2021-10-15 19:27:25 +00:00
Hyunyoung Song 0d794e65aa Enable widget picker aiai search
Bug: 183108439
Test: manual
Change-Id: I93f00131817622ad441d3374f22f26df8b28114d
2021-10-15 11:10:50 -07:00
Alex Chau 22be1a47f4 Clear only workspace shortcut / widget related tests
- This ensure hotseat to be populated with default items, so it won't result in an empty taskbar which get stashed in apps
- Workspace needs to be cleared because shortcut / widget dragging won't always work if there are items in workspace. It only happens in test due to the way we drag items.

Fix: 202546679
Test: NexusLauncherTests:com.android.launcher3.ui.widget.RequestPinItemTest
Change-Id: Ib3ded6a685eaa1b169b75fd179c9e29ca4be1e72
2021-10-15 16:01:44 +01:00
Thales Lima 4d6f3d67d2 Merge "launcher: create a device profile for foldables" into sc-v2-dev 2021-10-15 10:10:36 +00:00
Samuel Fufa f53278c908 Merge "[Search] Fix ItemInfo assignment conflict" into sc-v2-dev 2021-10-14 23:22:16 +00:00
TreeHugger Robot cd9f57042c Merge "Update logging to help debug b/200572078" into sc-v2-dev 2021-10-14 22:33:59 +00:00
Thales Lima 1de4d55d55 launcher: create a device profile for foldables
This creates a device_profiles_split.xml that will be used when the
device is a foldable. This makes the changes contained for specific
devices and make it possible to use different padding files in the
future if needed.

Bug: 191879424
Test: tested with NexusLauncher and Launcher3, in foldables and
handhelds
Test: check that 4x4 is not scalable anymore on handhelds by using HSV

Change-Id: If6ef14e3611c5252634c080643433545ce186f0d
2021-10-14 22:42:25 +01:00
sfufa@google.com 0fe464ddb9 [Search] Fix ItemInfo assignment conflict
When a BubbleTextHolder has more than one bubble text view, BubbleTextView#getParent().onItemInfoChanged is problematic as the ItemInfo associated with the last BubbleTextView will be the final ItemInfo set on parent. This is fixed by setting ItemInfo change receiver more explicitly.

Bug: 203020679
Test: Manual
Change-Id: Ia8aeead1a6151c2aa47148ba4846ae3d3ee39b73
2021-10-14 14:35:08 -07:00
Samuel Fufa d942287299 Merge "[Search] Introduce feature flag ENABLE_ONE_SEARCH" into sc-v2-dev 2021-10-14 00:26:20 +00:00
Schneider Victor-tulias 8d8412f5b0 Update logging to help debug b/200572078
The class name logged in a repro of b/200572078 was insufficient after updated logs. Added more logging to get a pointer and stack trace when callbacks are added.

Test: ran launcher and checked logs
Bug: 200572078
Change-Id: I01bf98f488204311415a3946d66d99f656387cc4
2021-10-13 15:02:12 -07:00
sfufa@google.com 3b6b03b756 [Search] Introduce feature flag ENABLE_ONE_SEARCH
Bug: 201781284
Test: Manual
Change-Id: I31f8b6fe5664c874e4c9605a1d174807b6170df0
2021-10-13 11:28:09 -07:00
Alex Chau 238aaee059 Allow 2x2 and 3x3 to be migrated after restore
- Allow disabled grid to be used during restore
- Remove all inactive grid dbFiles to allow grid migration to happen
- Set the proper grid after restore to trigger migration

Bug: 202125760
Test: Restore a 2x2,3x3 grid, icons and widgets are migrated to 4x4 grid
Test: Restore a 4x4 grid, icons and widgetse stays in original position
Change-Id: Ie59e1ca0ca56ed2de52d88cd5f51b980788afa52
2021-10-12 17:36:04 +01:00
TreeHugger Robot fa8860a1b5 Merge "Revert "More logging for drop bar not appearing for dragged widget"" into sc-v2-dev 2021-10-12 09:18:08 +00:00
Vadim Tryshev a666b8f5da Revert "More logging for drop bar not appearing for dragged widget"
This reverts commit 876c15aa1f.

Reason for revert: After this CL, the flake disappeared. Revert to see if this was because of this CL.

Bug: 195031154
Test: presubmit

Change-Id: Ic3c54900927615338d9510ad179e87ee43133e4e
2021-10-11 22:10:50 +00:00
TreeHugger Robot 198030c1e0 Merge "[Search] Scale up small search icons on drag start" into sc-v2-dev 2021-10-09 05:01:30 +00:00
Samuel Fufa 8469dc98c6 Merge changes I097134c4,Icfe39c30 into sc-v2-dev
* changes:
  [Work profile][Test] Remove tracing logs for testWorkeduFlow
  [Work Profile] Enable work profile tests
2021-10-08 22:37:09 +00:00
Jonathan Miranda 273aa1c7af Merge "Update folder preview and folder background colors." into sc-v2-dev 2021-10-08 18:22:06 +00:00
Thales Lima 292a993c4a Merge "launcher: refactoring variables into arrays" into sc-v2-dev 2021-10-08 16:15:18 +00:00
Thales Lima 83bedbfe97 launcher: refactoring variables into arrays
There are a lot of variables that can be merged together into arrays
following some optimizations done in other places.

Bug: 191879424
Test: checking cell size and extra space in dumpsys
Change-Id: I1d73fbb5da2df2345ced7f46df5bae5d75d9d6b1
2021-10-08 13:36:56 +01:00
TreeHugger Robot 96ddd1cfd8 Merge "Enable QUICK_WALLPAPER_PICKER for droidfood." into sc-v2-dev 2021-10-08 02:50:59 +00:00
sfufa@google.com 9f0981dc4f [Work profile][Test] Remove tracing logs for testWorkeduFlow
Bug: 159671700
Test: NA
Change-Id: I097134c45155f0e65ef4376fab803796f3fdb12a
2021-10-07 16:48:41 -07:00
sfufa@google.com bd977f3598 [Work Profile] Enable work profile tests
Bug: 159671700
Test: presbumit
Change-Id: Icfe39c30d603a4ae4cac576bc44037f545437ced
2021-10-07 16:48:20 -07:00
Samuel Fufa 3aae069e2b Merge "[Work profile] Fix flickering work mode switch" into sc-v2-dev 2021-10-07 23:42:42 +00:00
Brian Isganitis 5b2221637f Enable QUICK_WALLPAPER_PICKER for droidfood.
Test: Wallpapers show up in long-press menu by default.
Bug: 188222480
Change-Id: I51441b0f7f50f40adf4ff15c42a5be792723cc03
2021-10-07 18:37:26 -04:00
Alex Chau 5d2309285c Merge "Use displayId to determine CHANGE_ACTIVE_SCREEN" into sc-v2-dev 2021-10-07 19:35:43 +00:00
Andy Wickham a01741bb61 Merge "Removes Smartspace Feedback flag." into sc-v2-dev 2021-10-07 18:36:11 +00:00
Brian Isganitis e3b26d0102 Merge "Have PopContainerWithArrow require BaseDraggingActivity." into sc-v2-dev 2021-10-07 18:01:23 +00:00
Alex Chau 4f140f96e8 Use displayId to determine CHANGE_ACTIVE_SCREEN
- Currently CHANGE_ACTIVE_SCREEN is dispatched when rotating too, which is incorrect. mScreenSizeDp is different in portrait and landscape, and varies more than swapping width/height due to different insets applied. Therefore, use the change of unique display id as a signal instead.

Fix: 202366729
Test: Rotate device, overview stays
Test: Unfold devices, overview goes away
Change-Id: Id8a7d4a1e237717521bfc5a5a67f23c4ee801c61
2021-10-07 14:44:01 +01:00
TreeHugger Robot 137dd35d26 Merge "[OneSearch] Log events with timestamp into logcat for debugging." into sc-v2-dev 2021-10-07 08:03:57 +00:00
Andy Wickham e5f2877eaa Removes Smartspace Feedback flag.
Bug: 202296180
Test: Manual
Change-Id: Ifff851116c09c0729a8152a93eb2d758f7c9b126
2021-10-06 20:12:08 -07:00
Jon Miranda b77878ebe3 Update folder preview and folder background colors.
Bug: 201332301
Test: light theme / dark theme
      open and close folder, ensure colors are accurate

Change-Id: I49198eb2faee03111be33051fd1cb08094844c77
2021-10-06 16:57:33 -07:00
Becky Qiu f11ecb7f59 [OneSearch] Log events with timestamp into logcat for debugging.
Bug: 199289915
Test: example log: https://paste.googleplex.com/5741834610409472
Change-Id: I24b2e68b36cb897ae3e6ccc38cf0561d38af6751
2021-10-06 15:20:47 -07:00
sfufa@google.com 01e0009b71 [Work profile] Fix flickering work mode switch
Since there is no system broadcast with Intent.ACTION_MANAGED_PROFILE_ADDED, UserCache's user list does not get updated when a new profile is installed until launcher is restarted. This change fixes that problem by getting the freshest list of users directly from UserManager.

This change also applies the proper padding to work apps recycler-view after work mode switch is attached.

Test: Manual
Bug: 201191227
Change-Id: I0f570eba44ebb845d0d6f8c5f14a63f9a8c18539
2021-10-06 14:27:55 -07:00
Sunny Goyal 0ecfb69596 Removing overscroll pluging support
Bug: 201677812
Test: Presubmit
Change-Id: Id8136e99746946ba840754ef8e71a4574f49938e
2021-10-06 11:23:46 -07:00
sfufa@google.com 1c5e607940 [Search] Scale up small search icons on drag start
Bug: 199341710
Test: manual
Change-Id: I243c3e84e3093d4a9c605b187a625c0580d9933f
2021-10-05 18:09:26 -07:00
TreeHugger Robot 1bf753f7a6 Merge "Add TAPL test that dismissing focused task causes next task to become focused." into sc-v2-dev 2021-10-06 00:14:46 +00:00
TreeHugger Robot feeb788941 Merge "Update logging to help debug b/200572078" into sc-v2-dev 2021-10-05 21:33:55 +00:00