Commit Graph

11526 Commits

Author SHA1 Message Date
TreeHugger Robot db58e41241 Merge "Avoid rebind if data didn't change" into sc-dev 2021-05-10 22:45:38 +00:00
Tracy Zhou afb2cb2cc8 Merge "Finish the recents animation when the phone goes to sleep" into sc-dev 2021-05-10 22:11:36 +00:00
Sunny Goyal 0fd2bf260b Merge "Ignoring invalid deep shortcuts during load" into sc-dev 2021-05-10 21:56:45 +00:00
Winson Chung 7bce233fb4 Merge "Removing some unused logs" into sc-dev 2021-05-10 20:15:43 +00:00
Cyrus Boadway 5501636c72 Merge "Enable Quickstep widget launch and return animations" into sc-dev 2021-05-10 17:48:55 +00:00
Tracy Zhou f20a4bd9a9 Finish the recents animation when the phone goes to sleep
Fixes: 169988381
Test: manual
Change-Id: I62527ef46009a1417e67637c512b3a2fc005bcd6
2021-05-10 10:20:43 -07:00
TreeHugger Robot 32ee8c6a51 Merge "Add local wallpaper color extraction to folder backgrounds." into sc-dev 2021-05-09 04:02:12 +00:00
TreeHugger Robot 21d9239559 Merge "New motion for ArrowPopup open/close." into sc-dev 2021-05-08 20:04:40 +00:00
Winson Chung 35226124e3 Removing some unused logs
Fixes: 185820525
Fixes: 177316094
Fixes: 158017601
Fixes: 180915942
Change-Id: I8ce5bde08e1728d3209762c5f061245386408825
2021-05-07 20:52:33 -07:00
Jon Miranda 94e43bd7d8 New motion for ArrowPopup open/close.
Bug: 175329686
Test: long press on apps where container opens above & below
      and where container is aligned left & right

Change-Id: I09bbf57b6e19cc6f022b9a96fb48d8c4ae080813
2021-05-07 19:33:22 -07:00
Sunny Goyal ce0c857e45 Avoid rebind if data didn't change
Bug: 187531176
Test: Manual
Change-Id: I94ab7ecfbed0cb8f0fbae995b4e2ff9c9cdaa808
2021-05-07 16:16:59 -07:00
Jon Miranda 0b6fa71deb Add local wallpaper color extraction to folder backgrounds.
- Starts listening to local wallpaper colors as soon as folder
  is positioned.
- The folder open animation already has a background color
  animator.
- For simplicity, folder open animation always starts
  first, and then we cancel its background color animator,
  and start a new animator to the extracted color.
- setAutoCancel would be handy here, but it does not work, will
  track in a separate bug.
- Since folders are reused, we clear our the color extractor on
  folder close.

Bug: 175329686
Test: multiple folders on rainbow background
      open each folder, ensure bg animates to proper color
Change-Id: Ie0f2c0632fa2361f7710ba247d74f882620dec16
2021-05-07 16:16:36 -07:00
Sunny Goyal c86eb1abf4 Ignoring invalid deep shortcuts during load
Bug: 182728800
Test: Manual
Change-Id: I880c2c8898f7a968024bf7b95e763f4293ee19a0
2021-05-07 16:06:20 -07:00
Steven Ng bcf85de807 Merge "Fix UI overlapping and void space in the full widgets picker" into sc-dev 2021-05-07 18:11:05 +00:00
Samuel Fufa 054f45486e Merge "[Search][Motion] Introduce header protection in AllApps" into sc-dev 2021-05-07 17:59:08 +00:00
TreeHugger Robot e227451142 Merge "Updated launcher logging." into sc-dev 2021-05-07 16:26:37 +00:00
Steven Ng b0fdd58a9a Merge "Fix full widgets picker fast scroll offset issue" into sc-dev 2021-05-07 16:16:56 +00:00
Samuel Fufa acebd1f69a [Search][Motion] Introduce header protection in AllApps
ScrimView exposes ScrimDrawingController that allow FloatingHeaderView to observe AllApps scroll progress and draw header protection on Scrim. In addition, search box independently adopts header protection background to ensure proper clipping behavior.

Test: local
preview: https://drive.google.com/file/d/1_E577AAJ0LBg0zrKJQSEJK9GQnrtx7uv/view?usp=sharing&resourcekey=0-MTxjlB3xWyJ3qPvr4qMdig
Bug: 184946772
Change-Id: I64c0f4f50d26c475d31542148a15c7c145588d3f
2021-05-07 11:15:05 -05:00
Alex Chau 5160385a0b Merge "Use mWindowContext instead of re-creating to avoid stale Resource" into sc-dev 2021-05-07 10:57:51 +00:00
Steven Ng 095e7562a4 Fix UI overlapping and void space in the full widgets picker
The issue is caused by not updating the header container after widgets
recycler view items changed due to item click.

Test: Expand / collapse items in the full widgets picker. No UI
      overlapping or void space is observed.
Bug: 186121915
Change-Id: I6a12bbdcca921d66c6d62601bb59cea66a33640b
2021-05-07 10:21:24 +01:00
Shan Huang f1d3cf02c9 Merge "Add a background scrim to launcher for text protection." into sc-dev 2021-05-07 03:59:26 +00:00
Samuel Fufa f94540b28a Merge "[WorkProfile] Update work/personal tab to pills" into sc-dev 2021-05-06 23:33:06 +00:00
Steven Ng e675a8e6b4 Fix full widgets picker fast scroll offset issue
Even though there is no change in fast scroller offset, the recycler view
scroll Y may still be updated. Let's also notify a scroll change if
the recycler view scroll has changed when updating the fast scroller thumb
offset.

Test: In the full widgets picker, scroll up and down with the fast
      scroller. Then, scroll up and down in the recycler view. The top
      section is scrolled together with the recycler view smoothly.
Bug: 183721076
Change-Id: I009fc7e27c8a20505a60502405ebbf695b5a37f2
2021-05-06 22:58:47 +01:00
Steven Ng 1b28e6d40a Merge "Only show collapse handle when the bottom widgets picker is scrollable" into sc-dev 2021-05-06 21:55:19 +00:00
Schneider Victor-tulias 344b200710 Updated launcher logging.
Updated logging to help track down b/168788486

Bug: 168788486
Test: manual
Change-Id: I064f0eb70f0281fb09083b95c321857d17e31a7d
2021-05-06 21:39:05 +00:00
Sunny Goyal eab1f9bfbe Merge "Linking various settings that control icon cache to icon state" into sc-dev 2021-05-06 20:59:54 +00:00
Alex Chau e9b2bf514b Use mWindowContext instead of re-creating to avoid stale Resource
- ag/14286682 changed to re-create window context in onConfigChange, which regressed the stale Resource problem, changed back to use mWindowContext instead
- Removed unnecessary extraInternalDisplays empty check, as empty / before S is already handled inside Display Info CTOR

Test: Change display size between default and large, taskbar is enabled/disabled correctly
Bug: 181215299
Change-Id: I7397d2dc1a1ce8e132e706e9de592558df6a18e7
2021-05-06 19:34:49 +01:00
Tony Wickham 1282050f2f Merge changes I9749124a,Ic59b877c,Ibe8734e8 into sc-dev
* changes:
  Fix running task damped by overscroll when other tasks are offscreen
  When overview appears from motion pause, come up from bottom
  Align home/back button from overview with tap outside
2021-05-06 17:29:25 +00:00
Steven Ng 57347bd6b7 Only show collapse handle when the bottom widgets picker is scrollable
Test: Go to contact bottom widgets picker. No collapse handle is
      shown because the content isn't scrollable. Go to Google calendar
      bottom widget picker. Collapse handle is hown because the content
      is scrollable.
Bug: 185134663
Change-Id: Ic6109c055a072aa1cf3521f829833fd5f4cece0f
2021-05-06 17:39:49 +01:00
Steven Ng 9b68983790 Merge "Fix scrolling issue in the full widgets picker" into sc-dev 2021-05-06 09:24:23 +00:00
Shan Huang 18caa92dba Add a background scrim to launcher for text protection.
This is a temporary approach to dim the wallpaper. Flip on ENABLE_WALLPAPER_SCRIM to enable the scrim.

In the long term we'll dim the wallpaper layer directly.

Test: Manual
Bug: 185890335
Change-Id: Ia88597bbcba6ae1536015d1b2a35260cab4a4453
2021-05-06 15:43:48 +08:00
Sunny Goyal b47172bc4e Linking various settings that control icon cache to icon state
Also separating icon provider for recents from Launcher as it used a fixed size

Bug: 183641907
Test: Verified on device
Change-Id: I6ea3caa0066d1483bfb8a81f0e8aaa472c813afe
2021-05-05 23:05:38 -07:00
Tony Wickham e8b22d5e60 When overview appears from motion pause, come up from bottom
- Add vertical offset calculations to RecentsView (in addition to
  the existing horizontal offset which has been renamed accordingly).
- LauncherState#getOverviewScaleAndOffset() now supports both
  horizontal and vertical offsets and is specified such that overview
  appears and disappears from the bottom of the screen rather than the
  side.
- Quick switch still uses horizontal offset to come from the side.
- No longer need to scroll to page 0 when translating offscreen.
- Update interpolators for overview to home transition.
- Align 2 button mode transition with 0 button mode.

Test: Visually checking all of these. As appropriate, repeat in 0, 2, 3
button modes, landscape/portrait/fake landscape, and 3P launcher
- Quick switch from home
- Home to overview
- Overview to home (swipe up)
- Overview to home (tap outside)
- Overview to home (back invocation)
- Quick switch from app
- Swipe up and hold from app
- Dismiss an app
- Empty recents
- Split select state to home
- Modal state to home

Bug: 185411781
Change-Id: Ic59b877ccc0050afd7cd478778e9eeb60e2e47f7
2021-05-05 21:08:49 -07:00
Steven Ng edfec2fc0b Fix scrolling issue in the full widgets picker
Before this change, the widgets recommendation table handles all the
touch events. The table doesn't distinguish a touch event from a scroll
event. This change forwards the motion event to the active recycler view.
If the recycler view doesn't handle the event, it will then forward the
event back to the view hierarchy.

Test: Open the full widgets picker, then start scrolling on the
      recommended widgets UI. The full widgets picker scrolls perfectly.
      Drag-n-drop a recommended widget
Bug: 186567644
Change-Id: I89d473179796c516d2394332dd75f8e9a1d8b388
2021-05-05 23:19:09 +01:00
TreeHugger Robot 7ef5456182 Merge "Call windowInsetController.hide method when hiding keyboard" into sc-dev 2021-05-05 20:14:42 +00:00
TreeHugger Robot 46d420bf14 Merge "Add funtional animation for SplitSelect from Grid." into sc-dev 2021-05-05 19:03:47 +00:00
Steven Ng 16d74e5d7f Merge "Fix class cast exception in a11y service for widget resize action" into sc-dev 2021-05-05 18:07:53 +00:00
Steven Ng f8af753b6a Merge "Fix LayoutParams cast exception in drag-n-drop" into sc-dev 2021-05-05 18:07:32 +00:00
Vinit Nayak bf51afd420 Merge "Set menu item to MATCH_PARENT for tap target" into sc-dev 2021-05-05 17:43:27 +00:00
Vinit Nayak 2dbdddb4ba Add funtional animation for SplitSelect from Grid.
Long ways to go to final UI - TODO(b/186800707)
Add comments to grid layout code,
no functional changes at all.

Bug: 181705607
Test: Enter split screen from overview task menu
in grid and carousel. Able to select all items
and enter split.

Change-Id: Ib62f1b286acf0781ec47862fa31b670e6ff1892a
2021-05-05 09:38:42 -07:00
Cyrus Boadway aee5339869 Enable Quickstep widget launch and return animations
Turn on new widget animations by default.

Bug: 169042867
Test: manual
Change-Id: Ie35660c798731f5e3d341c8135adb8e2a7683eed
2021-05-05 16:11:48 +00:00
Steven Ng ac05cb1343 Fix class cast exception in a11y service for widget resize action
Test: Enable talkback. Then navigate to a widget. Trigger talkback
      menu > actions > move. Able to move a widget without crash.
Bug: 186999201
Change-Id: Ic6a66fefd643443e3d5a8839e6f2fe10c946dab2
2021-05-05 15:38:28 +01:00
TreeHugger Robot e80a0caa81 Merge "Don't crash on dialer app target search results" into sc-dev 2021-05-05 07:08:12 +00:00
Hyunyoung Song 67edf1654c Don't crash on dialer app target search results
Bug: 186412929
Test: manual
Change-Id: Ic1ab6e212d36ca1f711f51d047e4d62106bf0680
2021-05-04 22:29:33 -07:00
TreeHugger Robot 04b5003b2e Merge "All apps motion tuning [1/n]" into sc-dev 2021-05-05 02:58:48 +00:00
Vinit Nayak 1419d40f38 Set menu item to MATCH_PARENT for tap target
Fixes: 186922491
Test: portrait/landscape real and fake
Change-Id: If0247cf75b41374a489331d991a0c273aaf3efee
2021-05-04 19:36:05 -07:00
Hyunyoung Song 96d4ec4544 All apps motion tuning [1/n]
- reverse spring direction to enable overshoot
- change master interpolators for swipe / fling

Test: manual
Bug: 183001675
Bug: 186121789
Change-Id: I5869d84daab99594cc2a261cb8f5d28e0293afe1
2021-05-04 23:59:48 +00:00
Jonathan Miranda 433f5b4290 Merge changes from topic "extractor-utils" into sc-dev
* changes:
  Move color extraction utils to extractor class so each instance can have its own set of temp variables.
  Revert "Revert "Use color extraction for arrow popup.""
2021-05-04 23:09:34 +00:00
Sunny Goyal c52c0782a7 Merge "Adding support for determining split layout for launcher." into sc-dev 2021-05-04 22:33:38 +00:00
Steven Ng 3e6b93cedb Merge "Add a flag to enable custom local filter for recommended widgets" into sc-dev 2021-05-04 22:02:25 +00:00