Commit Graph

13735 Commits

Author SHA1 Message Date
TreeHugger Robot 773a332179 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: I7cfbadbc8f47c90672fb661ba2d2108bfb5fe239
2021-05-21 02:25:07 +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 bcdf855e61 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: Iaf28d442d190004cb57e62eed7e922fbfac12830
2021-05-20 23:48:15 +00:00
Steven Ng b6e116c31f 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: If3e90995d07e518d6383d63c8c1dbfc7274c857f
2021-05-20 23:48:06 +00:00
Steven Ng 43a9c58a24 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: I621c04031c45ecae02475f4f597b223c4dc9f80b
2021-05-20 23:48:01 +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 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 ac053fb4c2 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: I4ae28cd0bbc1e84268f4d6c9c1d047d39e582ae1
2021-05-20 23:39:21 +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 401d94b0bc 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: I4543c5073dacd2b1039b0c95bca7e7315d470ed9
2021-05-20 23:16:43 +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
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
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
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
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
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
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
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
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
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
Vinit Nayak 3f47826339 Enable SplitSelect flag by default
Bug: 188195640
Change-Id: I5ea90460275aabf9d048b187c3da9f3202368ec3
2021-05-19 19:05:06 +00:00
Samuel Fufa b1114a9834 Merge "[Search] Update all apps header protection" into sc-dev 2021-05-19 19:00:33 +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
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
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
Alex Chau 59da8e5a9d Launcher feature flags for large screen
- Enable TaskBar, Grid Overview and Two Panel

Bug: 188409266
Test: Manual
Change-Id: I55457b1ad98726cf7d7869fe96e0c4412b891d0b
2021-05-19 08:03:24 +00:00
Sunny Goyal 194dcc0fd3 Merge "Removing number of threads used in background execution to prevent system thrashing" into sc-dev 2021-05-19 06:23:10 +00:00
TreeHugger Robot de94720354 Merge "Adding a shared-pref to control icon theming" into sc-dev 2021-05-19 02:50:03 +00:00
Samuel Fufa 76b33404b5 [Search] Update all apps header protection
- Introduce spacing between header protection and search box
- introduce vertical padding for "personal | work" tab
- animate tab header protection color change when docking

Test: Manual
preview: https://drive.google.com/file/d/1eS4B7hcLExxCdjSp1IzBcziKm-9w87UR/view?usp=sharing&resourcekey=0--mtY6bCC9GJpFSUC8I5d6w
Bug: 184946772
Change-Id: I840af27c7557f1dffd7a15874aa09833514b4bb1
2021-05-18 17:14:14 -05:00
Sunny Goyal 01c32a69be Adding a shared-pref to control icon theming
Bug: 183641907
Test: Manual
Change-Id: I640a8473c9ca4acfded9ebbfa823e437c3a42b45
2021-05-18 14:25:21 -07:00
Sunny Goyal a76bc76317 Removing number of threads used in background execution
to prevent system thrashing

Bug: 188541475
Test: Presubmit
Change-Id: Iff73abeab813d1b80a1ff85b69723dce0bef8005
2021-05-18 13:43:50 -07:00
Samuel Fufa b605d1d73c Merge "Fix header protection interactions" into sc-dev 2021-05-18 19:00:37 +00:00
Sunny Goyal 5bb515b6cc Merge "Moving taskbar lifecycle to TouchInteractionService" into sc-dev 2021-05-18 17:17:27 +00:00
Jonathan Miranda 7d4aaaa73d Merge "Add WorkspaceRevealAnim, successor to StaggeredWorkspaceAnim." into sc-dev 2021-05-18 16:46:12 +00:00
Samuel Fufa 0a709374ae Fix header protection interactions
Bug: 184711608
Bug: 187790639
Preview: https://drive.google.com/file/d/1MDh71t8DQn0SxTQY3-GZTfIlGECQs_Kn/view?usp=sharing&resourcekey=0-ep9C3q9Meo8cQShVJqnKEw
Test: Manual
Change-Id: I9c939a894adc3e9cd1ed1beb7c11f9c2dd673824
2021-05-18 16:28:55 +00:00
Pat Manning 049434a504 Merge "Animate task translation on dismissal." into sc-dev 2021-05-18 09:32:19 +00:00
Sunny Goyal e215fb730b Moving taskbar lifecycle to TouchInteractionService
> Inflating taskbar views with a non-launcher window context
> Removing separate taskbar view in Launcher
> Handling taskbar icon clicks directly instead of going via launcher
> Fixing some relayouts during show/hide animation

Bug: 187353581
Test: Manual
Change-Id: Ia7d44acbb770bf0345922234b3daa5cc040a5843
2021-05-17 21:47:08 -07:00
Jon Miranda 7d2dfcfb3f Add WorkspaceRevealAnim, successor to StaggeredWorkspaceAnim.
- Added support for widgets for the new close animation.
- This anim is used with the new app close.
- This anim is not compataible with the old app close, so we need to
  keep StaggeredWorkspaceAnim in case we turn the app close flag off.

- We will also use this anim in the lockscreen to launcher anim, will
  connect them in a follow up CL.

Bug: 188413065
Bug: 173107751
Test: manual
Change-Id: Icab3fd700f2c268bb1c4509a37466e4e6748f789
2021-05-17 23:04:07 +00:00
Hyunyoung Song b83e8f614a Merge "Catch NPE for AllAppsContainerView.dispatchRestoreInstanceState" into sc-dev 2021-05-17 21:44:16 +00:00
Steven Ng c47d8a027d Merge "Add a scrim underneath the top section of search & recommendation UI" into sc-dev 2021-05-17 17:51:41 +00:00
TreeHugger Robot 6facaad569 Merge "Revert to overview coming from the side instead of bottom" into sc-dev 2021-05-17 17:04:43 +00:00
Alina Zaidi f0e11cbbc3 Merge "Modify pin widget dialog open-close animation." into sc-dev 2021-05-17 16:51:50 +00:00
Pat Manning cc64218e68 Animate task translation on dismissal.
Test: manual
Bug: 186416527
Fix: 186416527
Change-Id: I3919b96b96fdd490e15968b7c2e680dad7f6e5d6
2021-05-17 16:21:38 +00:00
Hyunyoung Song be26cb271f Merge "Fix searchbox font and other specs" into sc-dev 2021-05-17 15:56:36 +00:00