Commit Graph

33141 Commits

Author SHA1 Message Date
Songchun Fan dcb47a09ec Merge "Reapply All Apps icons on download complete." into sc-dev am: 6a69ff55b7
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14554680

Change-Id: Iefc93b075787d8243e062e12eb88c8c5b09b2257
2021-05-21 16:05:09 +00:00
Sunny Goyal d656b6c1ec Merge changes from topic "revert-14664190-JGHJCCJYPM" into sc-dev am: 67914aff50
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14669170

Change-Id: I5c0dfbb853c903784ea262f91179ac9eaf7b7bcc
2021-05-21 16:05:04 +00:00
Songchun Fan 6a69ff55b7 Merge "Reapply All Apps icons on download complete." into sc-dev 2021-05-21 15:59:58 +00:00
Sunny Goyal 67914aff50 Merge changes from topic "revert-14664190-JGHJCCJYPM" into sc-dev
* changes:
  Initiate taskbar only after the user is unlocked
  Revert "Revert "Renaming TaskbarController to LauncherTaskbarUIC..."
  Revert^2 "Moving taskbar lifecycle to TouchInteractionService"
2021-05-21 15:45:11 +00:00
Alina Zaidi fc3e03057f Align 'No widgets available' text box properly in Widget picker. am: 260c38c4a0
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14505876

Change-Id: I8ed6e4767b63797682a05b67ce57439142a8a2aa
2021-05-21 13:10:19 +00:00
Alina Zaidi 260c38c4a0 Align 'No widgets available' text box properly in Widget picker.
Bug: 186209657
Test: Tested manually
Change-Id: I85fa43cd745a8c9f9601d25ed3a35f512506234d
2021-05-21 10:49:03 +01:00
Steven Ng c78cb3572f Merge "Clear widgets search bar focus when the user taps outside the search bar" into sc-dev am: 9f194ee290
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14622878

Change-Id: I23c5c5be5f73c27ee5bdfd521169a7c5b274dee9
2021-05-21 09:06:41 +00:00
Steven Ng 9f194ee290 Merge "Clear widgets search bar focus when the user taps outside the search bar" into sc-dev 2021-05-21 08:52:50 +00:00
Sunny Goyal 301eaf2b8c Initiate taskbar only after the user is unlocked
Bug: 188755902
Test: Presubmit
Change-Id: Ida4bc07f45396e82ab404a617aa6833afeea78bc
2021-05-21 07:05:38 +00:00
Sunny Goyal f8b1c3b38e Revert "Revert "Renaming TaskbarController to LauncherTaskbarUIC..."
Revert submission 14664190

Reason for revert: Errorprone fixed in ag/14667108
Reverted Changes:
Icd1ddd43e:Revert "Renaming TaskbarController to LauncherTask...
I465013697:Revert "Moving taskbar lifecycle to TouchInteracti...

Change-Id: I1dcccb43d8206830e2b7c1974e775c94ac8c542f
Bug: 187353581
2021-05-21 07:05:31 +00:00
Sunny Goyal d5500548dc Revert^2 "Moving taskbar lifecycle to TouchInteractionService"
430465a3d5
Bug: 187353581
Change-Id: I7b2280d16adfafd3e85ffc1d22e32d0c00d12b67
2021-05-21 07:05:02 +00:00
Pierre Barbier de Reuille 28a42cdef7 Merge "Correct size of AppWidget for color extraction." into sc-dev am: fd3ad5d769
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14649810

Change-Id: I3a4ae2ac03130a750b0ac4b661bb1afdeaf802e7
2021-05-21 06:12:26 +00:00
Pierre Barbier de Reuille fd3ad5d769 Merge "Correct size of AppWidget for color extraction." into sc-dev 2021-05-21 06:06:30 +00:00
TreeHugger Robot 7fc5a95427 Merge "Fixing Launcher preview leaking surface and memory" into sc-dev am: 50308f3750
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14654425

Change-Id: I83db9c08b56d9756bfdfca2a85718d37b6bbc20f
2021-05-21 06:05:29 +00:00
TreeHugger Robot 50308f3750 Merge "Fixing Launcher preview leaking surface and memory" into sc-dev 2021-05-21 05:51:08 +00:00
Winson Chung 8efc40aeb4 Merge "Tweak ordering of first match search" into sc-dev am: 07414d5cd5
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14668159

Change-Id: Iad6853d1476bdc53c2e309eb2dca6b6d16341772
2021-05-21 03:41:08 +00:00
Winson Chung 07414d5cd5 Merge "Tweak ordering of first match search" into sc-dev 2021-05-21 03:15:55 +00:00
Tracy Zhou 7edc80944d Merge "Notify when quickstep gesture starts" into sc-dev am: 1f9fcf87f7
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14630659

Change-Id: Ie4f981dfdda555bcbc144c0ca0636446160a240c
2021-05-21 02:32:02 +00:00
Tracy Zhou 1f9fcf87f7 Merge "Notify when quickstep gesture starts" into sc-dev 2021-05-21 02:24:22 +00:00
TreeHugger Robot d325abbfcb Merge "Animate recommended widgets vertical transition when reset widgets picker scroll position" into sc-dev am: 45f7360432
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14649811

Change-Id: I25b4c28baaec42245a6f716d18318c28e3dc3b7e
2021-05-21 02:22:58 +00:00
TreeHugger Robot 45f7360432 Merge "Animate recommended widgets vertical transition when reset widgets picker scroll position" into sc-dev 2021-05-21 02:02:47 +00:00
Steven Ng 3c4d9b5b97 Merge "Apply android:attr/dialogCornerRadius to widgets picker dialog top corners" into sc-dev am: 36f9aa7530
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14643392

Change-Id: I904cd5b5f32763016fd854e1af8993ec4fe983e6
2021-05-20 23:59:38 +00:00
Steven Ng 36f9aa7530 Merge "Apply android:attr/dialogCornerRadius to widgets picker dialog top corners" into sc-dev 2021-05-20 23:46:53 +00:00
Steven Ng 15f71aa14d Merge "Fix WidgetsSearchBarControllerTest" into sc-dev am: 2c880a321d
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14639868

Change-Id: I1d40f0336be31d55ca6b7b2abbcf468aaaf357ef
2021-05-20 23:46:25 +00:00
Steven Ng 4db72a3207 Merge "Remove work profile badge from widget previews" into sc-dev am: b46428fcd9
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14648790

Change-Id: I849cff785d1acb51922bcef3874a68495b6630cb
2021-05-20 23:46:20 +00:00
Steven Ng 65bb7e0587 Merge "Reset visible entries when the app tile of the same app no longer match" into sc-dev am: 444b2489a5
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14622880

Change-Id: I6aa2fa508a793c16de9e8eb5636fa8f97dbbb34d
2021-05-20 23:46:16 +00:00
Steven Ng 2c880a321d Merge "Fix WidgetsSearchBarControllerTest" into sc-dev 2021-05-20 23:43:11 +00:00
Steven Ng b46428fcd9 Merge "Remove work profile badge from widget previews" into sc-dev 2021-05-20 23:42:50 +00:00
Steven Ng 444b2489a5 Merge "Reset visible entries when the app tile of the same app no longer match" into sc-dev 2021-05-20 23:42:24 +00:00
Steven Ng eea4a491e9 Merge "Widgets: Only reset expanded item & scroll to top if the user switch tab" into sc-dev am: f357dc4f3e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14622871

Change-Id: Ia1ce353f04206befb3e39e6bce0d86059f33ed9b
2021-05-20 23:37:46 +00:00
Steven Ng f357dc4f3e Merge "Widgets: Only reset expanded item & scroll to top if the user switch tab" into sc-dev 2021-05-20 23:24:35 +00:00
Lucas Dupin eba3c140dc Merge "Make launcher opaque when scrim becomes opaque" into sc-dev am: c2bcdcee9b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14654426

Change-Id: Iafa785ec549e1b6803e3954eb673eb413a426291
2021-05-20 23:15:14 +00:00
Lucas Dupin c2bcdcee9b Merge "Make launcher opaque when scrim becomes opaque" into sc-dev 2021-05-20 23:11:46 +00:00
Winson Chung bd2fa26bda Tweak ordering of first match search
- Tweak iteration for finding first match, go by operator priority and
  check each cell layout by order to return the first view that matches
- Also reset the launch cookie in cases where we're launching a task
  that doesn't support cookies (ie. via prediction), otherwise we may
  still try to associate it with the last launched cookie later

Fixes: 187720286
Test: Swipe up from various icon types across hotseat/workspace
Change-Id: I71c4c13c442b0884b2247589685f976eaaeb30a4
Signed-off-by: Winson Chung <winsonc@google.com>
2021-05-20 14:50:33 -07:00
Jon Spivack 1dc5c439f1 Merge "Disable NIU Actions on Work Profile apps" into sc-dev am: fea72152fd
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14610102

Change-Id: Ibaf041bad8c6ef553d0f3aca9436137d3a232a8a
2021-05-20 21:38:19 +00:00
Sunny Goyal df4241ca4e Fixing Launcher preview leaking surface and memory
> Closing existing preview if a new request comes for same host token
> Closing in-memory icon db when closing preview
> Removing unnecessary wait blocks on UI thread and rendering
  view asynchronously
> Fixing preview loading failing on LauncherAppState access

Bug: 186712316
Bug: 187140897
Test: Manual
Change-Id: I045930b007e5dc015320224a197eee20a8354d17
2021-05-20 21:37:28 +00:00
Lucas Dupin 0c6341af99 Make launcher opaque when scrim becomes opaque
This will help with overdraw, because we don't need to draw the
wallpaper.

Test: manual
Test: adb shell dumpsys SurfaceFlinger --timestats -dump
Bug: 187703092
Change-Id: I2ebae94725578e5f4d640cd6b45da3f4d1f21a20
2021-05-20 14:33:39 -07:00
Jon Spivack fea72152fd Merge "Disable NIU Actions on Work Profile apps" into sc-dev 2021-05-20 21:16:22 +00:00
Steven Ng 400493c70c Apply android:attr/dialogCornerRadius to widgets picker dialog top corners
Test: Open full & bottom widgets picker and observe the top corners.
Bug: 188651333
Change-Id: If091e2d760042582bb98cbd3e44663542098ecd9
2021-05-20 22:05:29 +01:00
Sunny Goyal b0cd154ac4 Merge "Fixing some errorprone build rules" into sc-dev am: 631767d919
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14666937

Change-Id: Id1b65f8f9f995e8fd094f274e20c20e25d5cdc73
2021-05-20 20:22:02 +00:00
Sunny Goyal 631767d919 Merge "Fixing some errorprone build rules" into sc-dev 2021-05-20 20:17:25 +00:00
Pierre Barbier de Reuille 8d15f0bbd6 Merge "Correct QuickStep interaction handler." into sc-dev am: c3e6383690
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14664199

Change-Id: I490d0c6c177c2abad472c3043a30670292e7dedb
2021-05-20 20:13:52 +00:00
Pierre Barbier de Reuille 1b8bbb6c40 Correct size of AppWidget for color extraction.
Correct the size of the App Widget: first, compute the size when the
widget is positioned (it wasn't done), then do not apply the
transformation when computing the size of the widget when drawn.

Note: Somehow, there is a shift by 1 on the position on the x axis, both
in landscape and portrait. So I added a +1 to get the exact same values.
If not, we have a risk of getting different colors.

Fix: 188759989
Bug: 187907544
Test: Added logs and moved a widget by hand, check the actual
coordinates with hsv.

Change-Id: Ia3bd5b3e3ea9a3ef75f8cdf466a9800786646a94
2021-05-20 21:02:30 +01:00
Pierre Barbier de Reuille c3e6383690 Merge "Correct QuickStep interaction handler." into sc-dev 2021-05-20 19:57:56 +00:00
Jonathan Miranda 560fc16266 Merge "Remove min/max values for RectFSpringAnim2." into sc-dev am: ee43020d0b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14645352

Change-Id: I76d1250ad1dac5848b7b11fdecec60010f359cc0
2021-05-20 19:37:18 +00:00
Jonathan Miranda ee43020d0b Merge "Remove min/max values for RectFSpringAnim2." into sc-dev 2021-05-20 19:21:03 +00:00
Sunny Goyal 1fb271f6e1 Fixing some errorprone build rules
Bug: 186259590
Test: Presubmit
Change-Id: I3a4a306a0351a67d53e35a6919296dbda8649766
2021-05-20 10:43:23 -07:00
Kholoud Mohamed cd9718c360 Merge changes I46501369,Icd1ddd43 into sc-dev am: 2c2163329b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14664190

Change-Id: Idbb92b2515098cc0f7b75208fb687e52608488ac
2021-05-20 15:52:03 +00:00
Kholoud Mohamed 2c2163329b Merge changes I46501369,Icd1ddd43 into sc-dev
* changes:
  Revert "Moving taskbar lifecycle to TouchInteractionService"
  Revert "Renaming TaskbarController to LauncherTaskbarUIController"
2021-05-20 15:30:34 +00:00
Pierre Barbier de Reuille 1c52d1ee12 Correct QuickStep interaction handler.
With the current implementation, all interactions happen on the main
view, preventing any button or clickable object from working.

Fix: 188775840
Test: Using an App Widget with checkboxes
Change-Id: I1ec6391a36b6a3795545acb5e08dde0d3a2b2ac8
2021-05-20 14:48:00 +01:00