Commit Graph

32753 Commits

Author SHA1 Message Date
Alex Chau 6f736fac65 Avoid unnecessary onLayout if gesture is going to HOME
Fixes: 186508379
Test: manual swipe up to carousel, then to home
Change-Id: I97a642a6fc4c4d0ca3805b79db60b6dfdaea1315
2021-06-09 13:07:32 +01:00
TreeHugger Robot bf9b2ca0bd Merge "Fix wrong highlighted personal | work tab" into sc-dev am: 962b212c9e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14904550

Change-Id: I4921e484d4762ca2a6425613eef58e4243c04acf
2021-06-09 03:03:57 +00:00
TreeHugger Robot 962b212c9e Merge "Fix wrong highlighted personal | work tab" into sc-dev 2021-06-09 02:41:40 +00:00
Shawn Lin 34be7f366b Merge "Play the nav bar animation for app launch from recent in live tile" into sc-dev am: f0ebf00394
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14878297

Change-Id: Ie63f9cc2645c21c4a3de111b9c3411ff66616c6d
2021-06-09 02:05:24 +00:00
Shawn Lin f0ebf00394 Merge "Play the nav bar animation for app launch from recent in live tile" into sc-dev 2021-06-09 01:39:49 +00:00
TreeHugger Robot 7e019e8a47 Merge "Re-enable swipe up view inflation test." into sc-dev am: 93e232a57b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14848883

Change-Id: I0833ea17df3ef812c13168f3c503ae7b90586078
2021-06-09 01:06:26 +00:00
TreeHugger Robot 285c50740a Merge "[AA+] Reset search manager when exiting all apps." into sc-dev am: e57006fe63
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14804874

Change-Id: I074e33f790758400825ee4aa34f9628207d71f96
2021-06-09 00:52:10 +00:00
TreeHugger Robot 93e232a57b Merge "Re-enable swipe up view inflation test." into sc-dev 2021-06-09 00:47:11 +00:00
Vinit Nayak d897514642 Merge "Support A11y contextual button" into sc-v2-dev 2021-06-08 22:07:53 +00:00
TreeHugger Robot e57006fe63 Merge "[AA+] Reset search manager when exiting all apps." into sc-dev 2021-06-08 21:50:31 +00:00
zakcohen 284eef2bf9 Re-enable swipe up view inflation test.
Disable chips by default as they are not plan of record for launch.

Bug: 141579810
Test: Local and ran test
Change-Id: Iae270c6ac4bbec4f7c29b1137cf926383443e85e
2021-06-08 14:24:20 -07:00
TreeHugger Robot 437b22e203 Merge "Make all tasks in intermediate carousel have the same size" into sc-v2-dev 2021-06-08 20:49:38 +00:00
TreeHugger Robot d57f845bc5 Merge "Set folder dot color to spec." into sc-dev am: 827ff401b9
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14904195

Change-Id: I6b40985162e5713c577c7380b5ce9a1bcbb80a5d
2021-06-08 19:43:49 +00:00
TreeHugger Robot 827ff401b9 Merge "Set folder dot color to spec." into sc-dev 2021-06-08 19:39:33 +00:00
Steven Ng ccaa1c2c4a Merge "Use WidgetSizes to estimate widget size instead of custom calculation" into sc-dev am: 4716ab3037
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14881309

Change-Id: Ib8aaaf71f69c669c42692ee11aecf6d73fa4cd1a
2021-06-08 19:12:17 +00:00
Steven Ng 0ed1b41464 Merge "Exact widget sizes functionalities into an utility class" into sc-dev am: 84fe7e3a1e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14881307

Change-Id: I5202727f975ce463179674cd54ba8d4b75063f9d
2021-06-08 19:12:12 +00:00
Steven Ng 4716ab3037 Merge "Use WidgetSizes to estimate widget size instead of custom calculation" into sc-dev 2021-06-08 19:11:25 +00:00
TreeHugger Robot 010e3dfb26 Merge "Consider TaskView's scale when calculating corner radius" into sc-v2-dev 2021-06-08 19:04:27 +00:00
Steven Ng 84fe7e3a1e Merge "Exact widget sizes functionalities into an utility class" into sc-dev 2021-06-08 18:55:07 +00:00
Alex Chau 36e9de1199 Make all tasks in intermediate carousel have the same size
- Replace fullscreen translation/scale with nonGrid, which applies whenever tasks are not in grid, so that intermediate carousle's tasks have the same size as focused task
- Avoid showing task icon in intermediate carousel as its scaled up. During swipe up, all task icons only appear after gesture is finished consistenly, regardles if it's running task.
- When swipe up from home, make tasks join the grid immediately
- Make pageOffset calculation consider task scale
- Tuned resistance and scale when RecentsView is swiped up

Bug: 187417137
Test: manaul
Change-Id: Ide55a32241a3551a58e12c399c22420562848c70
2021-06-08 19:47:50 +01:00
Samuel Fufa e721f7272c Fix wrong highlighted personal | work tab
Bug: 189915880
Test: Manual
Change-Id: I3e8687038d4f0bfdd1c5b7d8c444520730a2bcd4
2021-06-08 13:31:40 -05:00
Vinit Nayak e568781206 Support A11y contextual button
Also migrate to only using sysui state flags
for ime/switcher visibility instead of 2 separate
methods.

Bug: 180046394
Test: Tested w/ 1 a11y service, then 2 services for
long click. Tested with IME switcher enabled and then
also suggested rotation button.
A11y takes precedence over IME switcher, but rotation button
takes precedence over a11y as is in phone mode today.

Change-Id: I9289165c8ca98d7ee432bd7145122d6a519600f6
2021-06-08 11:25:44 -07:00
Jon Miranda 9b4448f477 Set folder dot color to spec.
Bug: 188095988
Test: manual
Change-Id: Idf4d7f7b8f95d1d112ece8cd03d9c7d441a5fe0f
2021-06-08 10:55:58 -07:00
Alex Chau bc42ba836e Consider TaskView's scale when calculating corner radius
Bug: 190139030
Test: Manual
Change-Id: I43fcb67848d30491bbfa58624f088c98ce433de4
2021-06-08 18:15:13 +01:00
Steven Ng f8eca2008d Merge "Use grid size as the upper bound for widgets' default size in initSpans" into sc-dev am: eb1617521c
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14776609

Change-Id: Ic74b543e4fb94ab377472cb5d8e25fe449818081
2021-06-08 15:06:03 +00:00
Steven Ng eb1617521c Merge "Use grid size as the upper bound for widgets' default size in initSpans" into sc-dev 2021-06-08 14:48:29 +00:00
Steven Ng 1d47d8c705 Use grid size as the upper bound for widgets' default size in initSpans
Test: In Pixel 4, drag a monthly view Google calendar widget to a new
      home page from the full widgets picker. The widget outline is
      correctly shown.
Bug: 189060113
Change-Id: I33113b29cc8923098de95f1d5eb14c2b02429de1
2021-06-08 14:15:50 +01:00
Wei Sheng Shih f077df5aef Merge "Pre-set splash screen as icon-style when launch activity from Launcher." into sc-dev am: c3db44bbce
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14773251

Change-Id: Icc117227086edadc83c34fa12242674c4f6b961c
2021-06-08 12:29:50 +00:00
Wei Sheng Shih c3db44bbce Merge "Pre-set splash screen as icon-style when launch activity from Launcher." into sc-dev 2021-06-08 12:16:24 +00:00
Steven Ng 7e06df2b50 Use WidgetSizes to estimate widget size instead of custom calculation
Also fix 2 bugs in WidgetCell
1. preview layout: padding is added to the AppWidgetHostView rather
   than the preview container. We shouldn't add padding to the size
   of the preview container.
2. widget_preview_shortcut_padding is a padding added to shortcuts but
    not widgets.

Test: Open full widgets picker and observe widgets are rendered
      correctly in the widgets recommendation table. Also, observe
      the generated bitmap images are correctly rendered.
      Run AddWidgetTest.
Bug: 189975670
Change-Id: I00db3200e0b61dc5e82f3c4bfdf34e197ea20314
2021-06-08 11:48:11 +01:00
Steven Ng 22b6039270 Exact widget sizes functionalities into an utility class
Test: resize widget, move widget, add widget.
Bug: 189975670
Change-Id: Ia0bc2297891e1cfa33697e985064db5d1dcdfc8b
2021-06-08 11:42:48 +01:00
TreeHugger Robot f9a402c34c [automerger skipped] Merge "DO NOT MERGE" into sc-dev am: 77afcf32f3 -s ours
am skip reason: subject contains skip directive

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

Change-Id: Ic7c05b2a262e07b8364e0d1ef87a23647d4c7a60
2021-06-08 08:57:19 +00:00
Stevie Kideckel 51d27b8dda Merge "Fix accounting for the position/offset of headers with collapsing views" into sc-dev am: acf27b6d64
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14881294

Change-Id: Ib539fc02df7b9c967aae919fab5dc864a4ece06a
2021-06-08 08:56:41 +00:00
TreeHugger Robot 77afcf32f3 Merge "DO NOT MERGE" into sc-dev 2021-06-08 08:46:55 +00:00
Stevie Kideckel acf27b6d64 Merge "Fix accounting for the position/offset of headers with collapsing views" into sc-dev 2021-06-08 08:37:25 +00:00
Pat Manning 9acaf302ad Merge "Animate live tile translation and update live tile page scroll on dismissal of non-live tile tasks." into sc-v2-dev 2021-06-08 08:21:01 +00:00
Stevie Kideckel fd9bfd3aab Fix accounting for the position/offset of headers with collapsing views
The offset should be taken before views are modified, the position
should be taken after. This fixes an off by one issue when expanding a
header below another already expanded header.

Bug: 183378651
Test: verified locally
Change-Id: I4987d57846d7bcde23b76280f800f19350b3521e
2021-06-08 07:08:42 +00:00
thiruram ea56f849c2 [AA+] Reset search manager when exiting all apps.
This is required to log search session exits properly, especially when exiting AllApps without clearing search query.

Bug: 178562918
Test: Manual
Change-Id: Id4c1007b051e9efd9ae5929c274a70cf3ae3cbf1
2021-06-07 17:14:24 -07:00
Tony Wickham 3f25e91586 Have AlphaUpdateListener update visibility in onAnimationEnd() am: 26ab4621ce
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14882859

Change-Id: I48b55edefe3e6a77851ff9d903cf0af56e604ece
2021-06-08 00:10:26 +00:00
zakcohen 1fb6718c85 DO NOT MERGE
Use focused task id for getting task size

When getting the selected task size, look at the focused task id, not
the running task id.
I believe this was a typo from the original change.

Bug: 190399315
Test: Local build and flash and run
Change-Id: Ice92e0562765f4f0142e27da0c38140df4c11425
2021-06-07 23:29:11 +00:00
Tony Wickham 26ab4621ce Have AlphaUpdateListener update visibility in onAnimationEnd()
Previously we were only updating visibility in onAnimationSuccess(), which doesn't handle the canceled case.

Test: swipe up from nav bar twice in all apps, ensure all apps is invisible/non-interactable
Bug: 190315266
Change-Id: Ic59e6d4b404de4ee2d17c45d6fa59e2aee70c65f
2021-06-07 22:16:22 +00:00
Jonathan Miranda 0622a1e470 Merge "New folder icon style (uncropped icons)." into sc-dev am: 93c0cfadb1
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14849713

Change-Id: I1ff62aaacada2c95922ae0166c10d95bf2448d57
2021-06-07 22:03:43 +00:00
Tony Wickham 4b916764a4 Merge "Fix regression where nav bar shows when taskbar is showing" into sc-v2-dev 2021-06-07 21:53:38 +00:00
Jonathan Miranda 93c0cfadb1 Merge "New folder icon style (uncropped icons)." into sc-dev 2021-06-07 21:48:50 +00:00
Steven Ng 8354f61df5 Merge "Fix preview layout crash upon screen rotation" into sc-dev am: 0062822976
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14881297

Change-Id: Ic9ded2e2ab8bc4d03914b045b6cd46fcfa4bca74
2021-06-07 20:51:43 +00:00
Steven Ng 0062822976 Merge "Fix preview layout crash upon screen rotation" into sc-dev 2021-06-07 20:38:39 +00:00
TreeHugger Robot 8235469f43 Merge "Fixing taskbar window not collapsed after closing folder" into sc-v2-dev 2021-06-07 20:22:10 +00:00
Jay Aliomer 9ee33330c0 Merge "Improve local color extraction handling." into sc-dev am: 4049f539c2
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14844551

Change-Id: Ib06e2672de8a56ad4af37e6a92a0999a021a435e
2021-06-07 19:51:10 +00:00
TreeHugger Robot 744244464e Merge "Make status bar icons visible in pin widget dialog scrim." into sc-dev am: ab8543e11a
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14844552

Change-Id: Icc5a27e02d68f05f78f3136f71a93f6046eb47c3
2021-06-07 19:50:53 +00:00
Jay Aliomer 4049f539c2 Merge "Improve local color extraction handling." into sc-dev 2021-06-07 19:45:13 +00:00