Commit Graph

34630 Commits

Author SHA1 Message Date
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 e7f0059c95 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: I80cfb1a0573fb9ba96356edd4b3a27c317ae9b2a
2021-05-20 20:23:46 +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 7760f88d8a 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: I5bcf01d2423cc887642b57e65cca40210d060c78
2021-05-20 20:15:38 +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 e68082e326 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: I4085881605c6cee399f4013f223a63da8237c6e0
2021-05-20 19:39:31 +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 1b90069c45 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: I66311744e29404d4a30273efd07fd7f0173b35fa
2021-05-20 15:53:46 +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
Samuel Fufa d312651f79 Avoid drawing tall header when scrolling search results
Bug: 184946772
Test: manual
Change-Id: I1bedec89fb9eb5dc51b8b34511a02868cec91efe
2021-05-20 09:15:20 -05: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
Bill Yi 5f65380ea2 [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev am: 30bcf18025 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14654418

Change-Id: I7aa71e977013b449efa162021c13aa68d82ace5d
2021-05-20 13:21:02 +00:00
Bill Yi 30bcf18025 Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev 2021-05-20 13:01:31 +00:00
Kholoud Mohamed 430465a3d5 Revert "Moving taskbar lifecycle to TouchInteractionService"
This reverts commit e215fb730b.

Reason for revert: DroidMonitor-triggered revert due to breakage https://android-build.googleplex.com/builds/tests/view?invocationId=I13700009003387451&testResultId=TR89423459137251402, bug https://buganizer.corp.google.com/issues/188755902

Bug: 188755902
Change-Id: I4650136975b60f311499ee6ff5b27ab9a32d23d6
2021-05-20 13:32:05 +01:00
Kholoud Mohamed bb6f6e5dae Revert "Renaming TaskbarController to LauncherTaskbarUIController"
This reverts commit 40a7421619.

Reason for revert: DroidMonitor-triggered revert due to breakage https://android-build.googleplex.com/builds/tests/view?invocationId=I13700009003387451&testResultId=TR89423459137251402, bug https://buganizer.corp.google.com/issues/188755902

Bug: 188755902
Change-Id: Icd1ddd43e62d392f6b68b0150a1075f73106391a
2021-05-20 13:31:34 +01:00
Bill Yi cae6bc0666 [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 34f90233c6 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14654420

Change-Id: Icae69edbf1210aacca40a34a2645d99bcab2e85c
2021-05-20 07:15:59 +00:00
TreeHugger Robot bf59bd1f52 Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-v2-dev 2021-05-20 05:36:23 +00:00
Tracy Zhou f833ecebfa Notify when quickstep gesture starts
Fixes: 182500083
Test: manual
Change-Id: I1ab27b309c0dd2640add1aa83566acee20708a3a
2021-05-19 22:09:44 -07:00
Bill Yi 71e6c35971 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I1e88acfbcbfbdfbf65b450ab1bf61c732da78fcb
2021-05-20 01:55:36 +00:00
Bill Yi 34f90233c6 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I48b71c9a8d0d380b91f614fad5fc581a67a2fb6b
2021-05-20 01:54:58 +00:00
Bill Yi 7c5972eb7b Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I24852ca5e8b474789031e4684f65b3f2e71959e5
2021-05-20 01:53:36 +00:00
Bill Yi ba82d94f51 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I8e06a080ec1a5e40b106c535c299919486f66915
2021-05-20 01:53:02 +00:00
Steven Ng 73d44f63b4 Animate recommended widgets vertical transition when reset widgets picker scroll position
Test: Set up work profile. Then open the widgets picker, scroll down from
      the personal tab, then switch tab. Observes a vertical transition
      animation of the search and recommendation container view.
Bug: 188538428
Change-Id: I2b8523d1682a6312de3b5393c0bff782ae110b3c
2021-05-19 23:58:54 +01:00
Jon Spivack cdbaea4486 Disable NIU Actions on Work Profile apps
If the currently selected Recent app belongs to a Work Profile, do not allow the user to invoke any of the overview actions. Instead, show the standard blocked by policy message (R.string.blocked_by_policy).

Bug: 187491010
Test: Manual (Pixel 3A)
Test: m -j RunLauncherGoGoogleRoboTests
Change-Id: I552da9512ab19993eb4bb65fe9269d2aee9f0c4e
2021-05-19 14:58:27 -07:00
Steven Ng f735c738ea Remove work profile badge from widget previews
Test: Check work profile badge no longer shown on work widget in the
      full and bottom widgets pickers.
Bug: 177675123
Change-Id: I0e5e32e18df832c1919749404094d68805c30556
2021-05-19 21:45:10 +01:00
Lucas Dupin fe43e316ae Merge "Remove shadows from app launch animation" into sc-dev am: 4e760601d5
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14637247

Change-Id: I43c4d9923e7b8b7c2c55234e0f745aadb3abb76c
2021-05-19 20:15:20 +00:00
Lucas Dupin 4e760601d5 Merge "Remove shadows from app launch animation" into sc-dev 2021-05-19 20:01:06 +00:00
Vinit Nayak 675d845b00 Merge "Don't set enabled on TaskMenu view if shortcut not available" into sc-dev am: 887bfef157
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14637304

Change-Id: Ic257537c32a25d43098b520c4a9a352260404e10
2021-05-19 19:10:01 +00:00
Samuel Fufa 6019318f9e Merge "[Search] Update all apps header protection" into sc-dev am: b1114a9834
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14628251

Change-Id: I7307d0599972bb7a13ff76e8b1906ecab36125f7
2021-05-19 19:09:51 +00:00
Sunny Goyal 9e1b279f3b Merge "Renaming TaskbarController to LauncherTaskbarUIController" into sc-dev am: 749f55f07a
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14626089

Change-Id: Iaff666ee3f900668a84781aa939f0df13cbaa6f1
2021-05-19 19:09:35 +00:00
Vinit Nayak 3f47826339 Enable SplitSelect flag by default
Bug: 188195640
Change-Id: I5ea90460275aabf9d048b187c3da9f3202368ec3
2021-05-19 19:05:06 +00:00
Vinit Nayak 887bfef157 Merge "Don't set enabled on TaskMenu view if shortcut not available" into sc-dev 2021-05-19 19:03:21 +00:00
Samuel Fufa b1114a9834 Merge "[Search] Update all apps header protection" into sc-dev 2021-05-19 19:00:33 +00:00
Sunny Goyal 749f55f07a Merge "Renaming TaskbarController to LauncherTaskbarUIController" into sc-dev 2021-05-19 18:41:47 +00:00
TreeHugger Robot 6e1059810e Merge "Folder polish" into sc-dev am: 1e558a2f4c
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14625965

Change-Id: Ic291da103051a18efc9acf7fe3531fc366e6a8c3
2021-05-19 18:22:41 +00:00
TreeHugger Robot 1e558a2f4c Merge "Folder polish" into sc-dev 2021-05-19 18:00:18 +00:00
TreeHugger Robot 814532969e Merge "Updated gesture navigation tutorial." into sc-dev am: f126d078ac
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14537683

Change-Id: Ia35f02c7b46b6c4edada3645780e61487bd5551a
2021-05-19 17:33:38 +00:00
Tracy Zhou effce2e586 Merge "Finish the recents animation upon home rotation" into sc-dev am: dc2be3d8a2
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14613421

Change-Id: I75d9bc3759ed5b1aca66dab92d6fae38288317fe
2021-05-19 17:33:23 +00:00
TreeHugger Robot f126d078ac Merge "Updated gesture navigation tutorial." into sc-dev 2021-05-19 17:25:48 +00:00
Tracy Zhou dc2be3d8a2 Merge "Finish the recents animation upon home rotation" into sc-dev 2021-05-19 17:17:57 +00:00
Jon Miranda a2ef1a0238 Remove min/max values for RectFSpringAnim2.
- Fixes crash on landscape
- We added this to stop the windows from going way out of bounds. But we no
  longer need it since we've tightened up the stiffness so that
  it would take a super aggressive swipe/high velocity for the window
  to go out of bounds

Bug: 188617892
Test: manual
Change-Id: Icc2a0af0a1b26985502ddbc7a5a370e7eecdb346
2021-05-19 09:55:25 -07:00
Lucas Dupin 3e19e57d22 Remove shadows from app launch animation
The Material You style proposes a flat model without shadows.

This will also help us reduce overdraw because shadows are drawn in
client composition, causing an almost full screen redraw, given that
shadows have the size of the window, which is not usually marked as
opaque.

Bug: 188420494
Test: manual
Change-Id: I5073788a247ea9084b8e3399d4ca8618c21b8d6b
2021-05-19 09:01:38 -07:00
Steven Ng 427c143ef6 Fix WidgetsSearchBarControllerTest
Test: Run WidgetsSearchBarControllerTest
Bug: 188650001
Change-Id: I687d602f8d857061f71a8fba86c30ea3017065c1
2021-05-19 16:08:22 +01:00
Steven Ng 2f2cbce818 Reset visible entries when the app tile of the same app no longer match
Test: Switch language and then go to full widgets picker. Expand apps.
      Expanded entry is shown underneath the expanded app.
Bug: 187529983
Change-Id: Ib438cf01656d3a177309e7f22796d0fa0c11881f
2021-05-19 15:40:02 +01:00
Steven Ng 1a55d1ff37 Widgets: Only reset expanded item & scroll to top if the user switch tab
Test: Open widgets picker, then adb install an app that has widget.
      Observe the newly installed app widget is shown and the widgets
      picker doesn't scroll itself back to top.
Bug: 188425375
Change-Id: I7ac29f08b06d528ef64e902e678a67e56971c681
2021-05-19 15:32:54 +01:00
Jon Miranda e3104682fb Folder polish
- Update folder hint text to ensure enough contrast.
- Clamp down on alpha when animating to local color extraction
- Update colors to new spec.

Bug: 179209484
Bug: 175329686
Test: manual
Change-Id: I9471504e10f02630ae13b2c478ced1ee05bd5220
2021-05-19 14:03:09 +00:00
wilsonshih 1bcb9d94ce Read the starting surface icon size from framework
Bug: 177264697
Test: Manual verify icon size on splash screen.
Change-Id: Iec6b0c519cf4692ac6851911ed1e21a3c1b752b4
2021-05-19 19:29:03 +08:00
Steven Ng 66034efaae Clear widgets search bar focus when the user taps outside the search bar
Test: Focus widgets search bar. Then tap outside the search bar and
      observe the keyboard is being dismissed.
Bug: 188540267
Change-Id: Ica1b5b804ed97dd0b1cd8d41351eddcf5249ded0
2021-05-19 11:31:09 +01:00