Commit Graph

16456 Commits

Author SHA1 Message Date
TreeHugger Robot 17f24235e5 Merge "Fixing wrong text spacing bounds" into sc-v2-dev am: a293a864a6 am: 8f8a55817d
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16103164

Change-Id: Ibdcdd2f47b3727f5a2c360f7024a92b9fede30d8
2021-10-21 20:29:03 +00:00
Sunny Goyal 486adb03a0 Fixing wrong text spacing bounds
Bug: 203740844
Test: Manual
Change-Id: I68fcab489643acf80759f90736f806ae2852e648
2021-10-21 11:30:18 -07:00
Sebastian Franco 4067f5d4ae Bugfix where the widget handles appear even when you can't resize it.
To fix it I added the following logic condition: if the minimum size of
the widget (`mMinVSpan` vertically) is equal to the maximum size of the
widget (`mMaxVSpan` vertically), then you can't change the size and the
handles shouldn't appear, I did this for both the horizontal handles as
well as the vertical handles.

Fix: 202004006
Change-Id: Ide05231f5712a736129ac6cb2fee358f7c70e371
Test: Manully veryfied.
2021-10-21 17:32:31 +00:00
TreeHugger Robot 53d0921acf Merge "Fix bug with resize frame in Launcher3." into sc-v2-dev am: ea38519fa4 am: 6bfd14613b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16057107

Change-Id: I1c600ea73a6e37bb79794650efa003874703e757
2021-10-20 21:20:24 +00:00
TreeHugger Robot ea38519fa4 Merge "Fix bug with resize frame in Launcher3." into sc-v2-dev 2021-10-20 20:50:17 +00:00
Schneider Victor-tulias c1a99b8712 Merge "Generalize the icon popup menu types." into sc-v2-dev am: e9bd364390 am: e650a048fa
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16065857

Change-Id: Ibef5acdb235ff1b0f30dd18e90330584ec037fa1
2021-10-20 19:23:18 +00:00
Schneider Victor-tulias e9bd364390 Merge "Generalize the icon popup menu types." into sc-v2-dev 2021-10-20 18:32:56 +00:00
Yogisha Dixit 7b1d25b251 Fix bug with resize frame in Launcher3.
Also updated the tests to check that the resize frame is shown.

Bug: 192655785
Test: AddWidgetTest, AddConfigWidgetTest, manual
Change-Id: Id348f39cec1bebc8ec9ea9f3068f4bda2159eac4
2021-10-20 19:03:14 +01:00
Pat Manning 011d37be5a Merge "Add new quickstep test for many tasks open at once." into sc-v2-dev am: 3c647ff30a am: 2e5511ad4b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15992810

Change-Id: I368651cbc9255f50baf3e741b561bebb16b18dd2
2021-10-20 15:55:07 +00:00
Pat Manning 3c647ff30a Merge "Add new quickstep test for many tasks open at once." into sc-v2-dev 2021-10-20 15:20:26 +00:00
Pat Manning ccec1de6ae Add new quickstep test for many tasks open at once.
This test is needed for testing overview-grid-related functionality.
- Opening non-focused tasks
- Dismissing a non-focused task from the grid
- Grid rows rebalancing after dismissal, which only happens when enough
apps are open to be off-screen.
- Grid tasks do not scroll after dismissal.

Test: TaplTestsQuickstep.java
Bug: 197630182
Change-Id: Ic907db4643cdc2eb9e4610dab917347e234e470c
2021-10-20 14:40:32 +01:00
Samuel Fufa 3a259847fe Merge "[Search] [Race condition] Fix wrong titles showing on BubbleTextHolder" into sc-v2-dev am: f0f2b75ada am: d91eaa6a90
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16087788

Change-Id: I6d764df96da7e73254e8d3cd27aae49fa16b2da9
2021-10-20 03:46:19 +00:00
Samuel Fufa f0f2b75ada Merge "[Search] [Race condition] Fix wrong titles showing on BubbleTextHolder" into sc-v2-dev 2021-10-20 03:15:25 +00:00
sfufa@google.com d7bdd97ac6 [Search] [Race condition] Fix wrong titles showing on BubbleTextHolder
No need to remove the listener on BubbleTextView#reset as BubbleTextView's parent should never change and always listen for ItemInfo updates.

Bug: 203506475
Test: Manual
Change-Id: Ie00b293495c79d36c9eb08408754389ab4b80839
2021-10-19 17:15:06 -07:00
Sunny Goyal 1a3467cf31 Merge "Adding support for dynamic letter spacing for icon labels" into sc-v2-dev am: 37a237b2cd am: 2021e21933
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15971871

Change-Id: I41b701b094cd4fb8b939560686bebc97c8c21547
2021-10-19 23:41:34 +00:00
Schneider Victor-tulias 16e04e29d2 Generalize the icon popup menu types.
Generalized popup menu types and logic to allow wider uses outside of launcher.

Bug: 198438631
Test: long pressed launcher icons and pressed menu options
Change-Id: Iadcbb1796496c0061dcee362784e426ff55dc94a
2021-10-19 16:06:16 -07:00
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 e0096f7897 Merge "[Work Profile] Fix NPE on WorkModeSwitch" into sc-v2-dev am: c46c83c8c8 am: b71fe0558a
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16086860

Change-Id: Ia6994d3e28b727b688acd347830e2b108316da2c
2021-10-19 22:12:02 +00:00
Samuel Fufa c46c83c8c8 Merge "[Work Profile] Fix NPE on WorkModeSwitch" into sc-v2-dev 2021-10-19 22:01:25 +00:00
TreeHugger Robot ff1419d376 Merge "Revert "Clear only workspace shortcut / widget related tests"" into sc-v2-dev am: 06146a1944 am: f944a88c2b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16076450

Change-Id: I3b33a924f8bb2a06866bec9c8488faf7523975ad
2021-10-19 20:33:59 +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 8d40f27df9 Merge "Don't apply left/right inset on gesture nav landscape" into sc-v2-dev am: abf9850dea am: 5babdc5da9
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16034083

Change-Id: Ie224967bd868679a9b105b588549cb41af6748bd
2021-10-19 10:58:26 +00: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
Tracy Zhou b38fe7f1a4 Merge "Track LauncherState for task bar stashing better" into sc-v2-dev am: fc0b21596f am: e268bda30d
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15951094

Change-Id: Iabfbc700313c098ad67b0e4664fe098416b9a9e0
2021-10-19 07:43:26 +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
Hyunyoung Song f0dd5eaa09 Merge "Enable widget picker aiai search" into sc-v2-dev am: 32f3616f0c am: c07b69da19
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16065853

Change-Id: If2e27d6dfa0b9ea2e73f6866f196ddc8e93e1967
2021-10-18 17:52:53 +00: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 de36e9cf2d Merge "[Search] Hide A-Z list when search is entered from QSB" into sc-v2-dev am: 4ff90a435e am: 201d221400
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16049078

Change-Id: If40a07ee2003b1c62b6910b47062e27e79df3bc8
2021-10-16 04:57:00 +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 7554bf378f Merge "Clear only workspace shortcut / widget related tests" into sc-v2-dev am: 6a4f5427ea am: 29ceb9d004
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16056308

Change-Id: I671b785eeb1a275fd32b757a9fa86825bd2828fd
2021-10-15 20:01:30 +00:00
TreeHugger Robot 8d70c127a5 Merge "Removing overscroll pluging support" into sc-v2-dev am: 27e294a973 am: dd336bbff6
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15951928

Change-Id: Ibc7592143466c95181fef342a773cec30cf1668f
2021-10-15 20:01:22 +00: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 a8cbab843f Merge "launcher: create a device profile for foldables" into sc-v2-dev am: 4d6f3d67d2 am: c163d4952b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16048152

Change-Id: I8c0f0055121a60cbfe37a87f3d250232c3782f3c
2021-10-15 10:43:37 +00: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 0d258310d1 Merge "[Search] Fix ItemInfo assignment conflict" into sc-v2-dev am: f53278c908 am: 9851b0fced
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16059407

Change-Id: I48c8c30912d58120f234bd42421ea58444722cb3
2021-10-15 09:42:46 +00:00
TreeHugger Robot 249420ef41 Merge "Update logging to help debug b/200572078" into sc-v2-dev am: cd9f57042c am: 4613c6efb2
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16049619

Change-Id: I1b5626409e0845c2e029a4b11659c223b2123869
2021-10-15 09:42:39 +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
Pratyush 37980c6d2c Merge "Make hotseat bottom a launcher config" 2021-10-14 05:12:37 +00:00
Samuel Fufa 4206d9d4c6 Merge "[Search] Introduce feature flag ENABLE_ONE_SEARCH" into sc-v2-dev am: d942287299 am: 625d375536
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15975399

Change-Id: I8e17b762a7ba7fae6820e9816d6e365741822c11
2021-10-14 00:51:37 +00:00