Commit Graph

58436 Commits

Author SHA1 Message Date
Bill Yi f17be91aa5 Merge "Import translations. DO NOT MERGE ANYWHERE" 2022-07-16 04:01:16 +00:00
Bill Yi 6d6685ff3f Merge "Import translations. DO NOT MERGE ANYWHERE" 2022-07-16 04:01:16 +00:00
Bill Yi 547930859f Merge "Import translations. DO NOT MERGE ANYWHERE" 2022-07-16 04:01:16 +00:00
Android Build Coastguard Worker f408ee5bd0 Snap for 8837442 from 6c057718ac to tm-qpr1-release
Change-Id: Ia888540dbef5216cfbc8399a7295558e906c6ab7
2022-07-16 03:25:13 +00:00
Sukesh Ram c0650e7725 Made getOnBoardingPrefs @Nullable & avoid NPE
Bug: 236679197
Test: Manual
Change-Id: I3cbb0891cbfcf7cab956a4e05a28dbbcc2b33e19
2022-07-15 17:29:26 -07:00
Sunny Goyal cba5f9a64e Removing unnecessary work adapter wrapper
Simplifying view type constants to make it easier to add new view types

Bug: 234008165
Test: Verified on device
Change-Id: I96589ceba362ea7e75afdfc3fe8da3be214aa682
2022-07-15 16:24:31 -07:00
Andy Wickham 85f9ce48ef Notifies All Apps header when profile tab switches.
This fixes scroll listeners which control the header from Taskbar.
In other instances of the All Apps container (i.e. from Launcher),
the search bar indirectly updates the header because resetSearch
is called, which also resets the header. Separately, I would like
to clean that up so that AllAppsContainerView does not get
controlled by the search bar (maybe as part of a larger reset
cleanup).

Fix: 236812759
Test: Manual on device with Taskbar
Change-Id: I9921e89c87d5e18e4b28854fbb373f24b4189014
2022-07-15 15:02:28 -07:00
Winson Chung 39651b9169 Merge "Replacing deprecated method" into tm-qpr-dev am: 6c057718ac am: 6298e97a7f
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19293344

Change-Id: I6429c92cdf9106085a394350553952b947aee207
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-15 21:17:01 +00:00
Winson Chung 6298e97a7f Merge "Replacing deprecated method" into tm-qpr-dev am: 6c057718ac
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19293344

Change-Id: Ic01381664c1c3ff023aa72fc0ce926dee4b1f3e2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-15 20:51:37 +00:00
Winson Chung 6c057718ac Merge "Replacing deprecated method" into tm-qpr-dev 2022-07-15 20:47:22 +00:00
Sukesh Ram 8b248a601e Merge "Fix SecondaryDisplayLauncher crash by initializing OnBoardingPrefs after initializing UI" 2022-07-15 20:21:09 +00:00
Sebastián Franco 024e668aa2 Merge "Fixing findNearestArea to account for the padding." into tm-qpr-dev am: cd195b6c0a am: d22853f042
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19107254

Change-Id: I7911c12d875ad062738c334e2dd641f7f75f5b4c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-15 17:35:23 +00:00
Sebastián Franco d22853f042 Merge "Fixing findNearestArea to account for the padding." into tm-qpr-dev am: cd195b6c0a
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19107254

Change-Id: I2c1baa6e24d9f0ea9d85084d9f560660a5c39c26
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-15 17:12:58 +00:00
Sebastián Franco cd195b6c0a Merge "Fixing findNearestArea to account for the padding." into tm-qpr-dev 2022-07-15 16:53:50 +00:00
Pat Manning d61ccbb7ed Add missing overview progress calls, track grid progress for thumbnail splash.
Test: manual
Bug: 202826469
Change-Id: I29578f44fd87423437ad6c73dc2be1ad630a55d6
2022-07-15 16:41:56 +01:00
Sihua Ma f8ca2c76f2 Merge "Added functions to pass launcher widget span info to preview" into tm-qpr-dev am: 68c6b81d2a am: efc1cb7beb
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19268917

Change-Id: I0d89b0bc6aa14b3bb96b44248d16c8bbbc518bec
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-15 11:44:16 +00:00
Sihua Ma efc1cb7beb Merge "Added functions to pass launcher widget span info to preview" into tm-qpr-dev am: 68c6b81d2a
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19268917

Change-Id: I8dc83c77195b4594c5d30084fc5a03ecd4732862
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-15 11:25:51 +00:00
Sihua Ma 68c6b81d2a Merge "Added functions to pass launcher widget span info to preview" into tm-qpr-dev 2022-07-15 11:06:02 +00:00
Alex Chau ded0aa126d Use collapse handle area height to calculate QSB margin on tablet
Fix: 228324815
Test: Check AllApps on different size tablets
Change-Id: Ia7064c21dd1810051e93eedee36bc14f125d8352
2022-07-15 10:57:53 +01:00
Android Build Coastguard Worker 236fb5119c Snap for 8832598 from 615f2edb76 to tm-qpr1-release
Change-Id: If4a59a2a7bd9292996a3ab6ee03a3dfd932a4d9d
2022-07-15 01:25:03 +00:00
Sukesh Ram 29b1890fca Fix SecondaryDisplayLauncher crash by initializing OnBoardingPrefs after initializing UI
Bug: 238325716
Test: Manual
Change-Id: I66a85eb79cda89a63c3116a56a52b51526720158
2022-07-14 16:02:25 -07:00
Tony Wickham 2294409486 Merge "Provide 0 insets to VoiceInteractionWindow in gesture nav" into tm-qpr-dev am: 2765792793 am: c5dfbc9d7d
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19277085

Change-Id: I5685f52e500c0ba8f9640d53d638435a9e44b2e5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-14 22:51:14 +00:00
Tony Wickham c5dfbc9d7d Merge "Provide 0 insets to VoiceInteractionWindow in gesture nav" into tm-qpr-dev am: 2765792793
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19277085

Change-Id: I527a43278cd25025daebda73acaa48694ad51d6c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-14 22:34:07 +00:00
Tony Wickham 2765792793 Merge "Provide 0 insets to VoiceInteractionWindow in gesture nav" into tm-qpr-dev 2022-07-14 22:17:09 +00:00
Sihua Ma dfd8bfc7e0 Added functions to pass launcher widget span info to preview
To calculate the widget scales correctly for the launcher preview in different grids, the span info of the widgets in the launcher is necessary. Querying the launcher widget info in the database and passing it to the preview render.

Test: Verified that no exceptions were happening when changing preview grid layouts
Bug: 228328759
Change-Id: I681d21b176c8fe5208431a79009d9ba8279cda6a
2022-07-14 20:17:19 +00:00
Sunny Goyal 063024d5a1 Merge "Fixing Launcher crash if activity restarts while resixing widget" into tm-qpr-dev am: 615f2edb76 am: e8cff04346
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19281892

Change-Id: I05998fb5a458feb2085449774cb07c34d0363943
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-14 19:29:45 +00:00
Sunny Goyal e8cff04346 Merge "Fixing Launcher crash if activity restarts while resixing widget" into tm-qpr-dev am: 615f2edb76
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19281892

Change-Id: Ib1f0339145f6816ccae726cf3b5583c3986d0fb7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-14 19:00:16 +00:00
Winson Chung 4c05fa3fba Replacing deprecated method
Bug: 219861883
Test: Builds
Change-Id: I8e008c042cb7fe74ced512b6a074892743ef25f8
2022-07-14 18:51:18 +00:00
Sunny Goyal 615f2edb76 Merge "Fixing Launcher crash if activity restarts while resixing widget" into tm-qpr-dev 2022-07-14 18:40:27 +00:00
Bill Yi 3be1b4c271 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I14b4f880ada60d2edc6742e273de01f7067c6aa0
2022-07-13 21:24:31 -07:00
Bill Yi 76494bebb4 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ie0edd8727c5d8d9308d4f3677e10e31e235da598
2022-07-13 21:23:37 -07:00
Bill Yi 744cf122ba Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I7227c022bbfabf97b5a2e56ddc13b9447af97b55
2022-07-13 21:22:42 -07:00
Bill Yi c0419a22fd Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I33063a67ec140546b7eab08ef605fc5adedb2289
2022-07-13 21:21:49 -07:00
Bill Yi ef46825eb4 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ie30d608b08e253a8757fd48beefa54e38a363e06
2022-07-13 21:20:20 -07:00
Bill Yi afc7d6fdc5 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I51d4492bab18fc272530df2c4bcedcf677ec859f
2022-07-13 21:19:43 -07:00
Bill Yi 7c74b797b5 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I275d1a61d58b6c7243c6cd87a976183e39dff005
2022-07-13 21:19:05 -07:00
Bill Yi e5bf619267 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Iafc3c190549cdbe7d6fae074a6937dff516039dd
2022-07-13 21:17:40 -07:00
Bill Yi a68ca5344f Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Id14eb20419b0c5d7dfb29c455507a5e760e05a18
2022-07-13 21:16:53 -07:00
Bill Yi 55845129b2 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I94fbaf735045200d8df3cb1a56947fc45e591f41
2022-07-13 21:16:05 -07:00
Android Build Coastguard Worker e021019687 Snap for 8827792 from 8b3fda7eb8 to tm-qpr1-release
Change-Id: I7e127fad5d070506399b10821f0a156e387fdcf7
2022-07-14 01:25:04 +00:00
Sebastian Franco b57c0b2762 Fixing findNearestArea to account for the padding.
The function findNearestArea calculates the corner of the
cell but in that calculation it doesn't account for the padding
in the cells.

Also, change ignoreOccupied because the name says one thing and
the code does the oposite so I change all true calls for false
calls and change the if to !ignoreOccupied so the description of
the parameter match the behaviour of the method.

Also, removing unused method.

Fix: 236134208
Fix: 236129504
Test: visualizing the components of findNearestArea in ag/19248816.
Change-Id: Iac50fbc76b4fa2acda21894ecb976ba612d468fe
2022-07-13 15:38:00 -07:00
Sunny Goyal cd89ca36b6 Fixing Launcher crash if activity restarts while resixing widget
When activity restarts, the widgetView gets onDetachFromWindow first
which inturn removes the AppWidgetResizeFrame from drawLayer while
the dispatchAttachToWindow was still in progress in DragLayer

Bug: 238416508
Test: Verified no crash after the change
Change-Id: I6359840c9fb3ae2719056845818620af19d3c94d
2022-07-13 12:22:01 -07:00
Tony Wickham bf7df8e7d2 Merge "Fix constant crash when setting MultiStateCallback.DEBUG_STATES=true" into tm-qpr-dev am: 8b3fda7eb8 am: f02057d685
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19220284

Change-Id: Ib63e7a1431932ac0226414cbe865304534d7d178
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-13 18:23:54 +00:00
Tony Wickham f02057d685 Merge "Fix constant crash when setting MultiStateCallback.DEBUG_STATES=true" into tm-qpr-dev am: 8b3fda7eb8
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19220284

Change-Id: I20a00c519fda1e3ad0fec8e910dc2ba2f27c1b62
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-13 18:05:47 +00:00
Tony Wickham 8b3fda7eb8 Merge "Fix constant crash when setting MultiStateCallback.DEBUG_STATES=true" into tm-qpr-dev 2022-07-13 17:45:26 +00:00
Tony Wickham fd170e25cb Provide 0 insets to VoiceInteractionWindow in gesture nav
Test: Invoke assistant on tablet on both geture nav and 3 button mode;
In gesture nav mode: assistant shows at the very bottom of the screen,
layered on top of the taskbar background (in z order)
In 3 button mode: assistant shows right above the taskbar, which only
shows the 3 buttons (no taskbar icons) while assistant is showing
Fixes: 225200928

Change-Id: I2fbc05e696b58e8801e704092aa2741cb57c05c4
2022-07-13 10:33:12 -07:00
Schneider Victor-tulias 2f81ad1240 Merge "Pause the AllSetActivity background animation more reliably." into tm-qpr-dev am: 2b3bd3039b am: 3535dd5906
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19239008

Change-Id: I82a87521f56031ac1f4157611ecee43e2bd043f7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-13 14:29:41 +00:00
Pat Manning c8c169a887 Merge "Show splash screen in quickswitch if thumbnail wrong aspect/orientation." into tm-qpr-dev am: de5be15650 am: 07815a4015
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/18675989

Change-Id: I318530eb5b485b584a69d0ab5ed1274e41a0dbd9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-13 14:29:29 +00:00
Schneider Victor-tulias 3535dd5906 Merge "Pause the AllSetActivity background animation more reliably." into tm-qpr-dev am: 2b3bd3039b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19239008

Change-Id: I14edb00abbe20a8c20deecad34ea12c0ce20f2f7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-13 14:13:30 +00:00
Schneider Victor-tulias 2b3bd3039b Merge "Pause the AllSetActivity background animation more reliably." into tm-qpr-dev 2022-07-13 14:13:14 +00:00