Commit Graph

11547 Commits

Author SHA1 Message Date
Tony Wickham 62dbe9827a Specify REQUEST_RECONFIGURE_APPWIDGET when dropping on Setup target
Test: Add a configurable widget to the home screen, drag it to the
Setup drop target, and swipe up to home from the setup page
Fixes: 187839837

Change-Id: I0912317248a33764d4f2a49db73b8fba44dfeca1
2021-05-12 16:19:58 -07:00
Hyunyoung Song 1553f4dfae Merge "Revert "Don't crash on dialer app target search results"" into sc-dev 2021-05-11 23:13:13 +00:00
TreeHugger Robot d30f4ce528 Merge "hide keyboard onStop and onNewIntent" into sc-dev 2021-05-11 23:08:53 +00:00
TreeHugger Robot d7c6e44ba9 Merge "Exposing AnimatorListeners in StateManager to receive both success and failure callback" into sc-dev 2021-05-11 22:21:42 +00:00
Winson Chung 76e27f6d5d Merge "End scroller if it has already reached the final position" into sc-dev 2021-05-11 21:52:45 +00:00
Hyunyoung Song 5ee7c13c60 hide keyboard onStop and onNewIntent
Bug: 183062683
Test: manual

Change-Id: I4c69c8ff87d827552e6b77424ce4b17edfb22966
2021-05-11 14:03:05 -07:00
Sunny Goyal a75f576890 Exposing AnimatorListeners in StateManager to receive both success and failure callback
Updating various callers to use onSuccess or onEnd appropriately

Test: Manual
Bug: 185554764
Change-Id: I357dd1fdbe111e7a30d4c8dee520fbd7d9956b7d
2021-05-11 13:53:14 -07:00
Winson Chung 8542541b2b End scroller if it has already reached the final position
- The system overscroller seems to take a long time to settle even
  after the final position has been reached, so if that has already
  happened and there is no edge effect, then just end the scroller.
- Remove unused code related to SmoothPageView

Bug: 184983443
Test: Quickswitch and ensure we finish the recents animation after it settles
Change-Id: I9fa72ddd6b6e0d38b6f622c776a2ac5f5b055760
2021-05-11 12:59:14 -07:00
TreeHugger Robot a7cc2cbdb5 Merge "Enable smartspace card dismissals" into sc-dev 2021-05-11 19:39:28 +00:00
TreeHugger Robot 95ff5cf63e Merge "Handle config changes in Launcher" into sc-dev 2021-05-11 10:58:48 +00:00
András Klöczl 45e72a1ed3 Merge "Fix launcher navigation issue when using a controller" into sc-dev 2021-05-11 10:01:43 +00:00
Andras Kloczl 359d1aedae Fix launcher navigation issue when using a controller
When navigating in Launcher home using a controller,
the mCurrentPage variable isn't updated properly which
results in out of order navigation.

Test: manual
Before: http://shortn/_c8A8mKiplN
After: http://shortn/_ctxIaweqZY
Bug: 187205980
Change-Id: I9ff4019b608e999749c4d0835cc3ceb35be93a3f
2021-05-11 09:52:24 +02:00
TreeHugger Robot b32fd46c8d Merge "Removing Launcher dependency from Folders" into sc-dev 2021-05-11 03:01:11 +00:00
TreeHugger Robot f2247f199f Merge "Add method to check if popup supports color extraction." into sc-dev 2021-05-11 01:55:45 +00:00
TreeHugger Robot 2fd0be4b15 Merge "Focus on newly-added workspace items for accessibility." into sc-dev 2021-05-10 23:40:41 +00:00
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
Sunny Goyal 5996937798 Removing Launcher dependency from Folders
This allows opening/closing folders without a Launcher context

Bug: 187353581
Test: Manual
Change-Id: Id73a40445a23004eb554f0422d286aa0ff6b3c41
2021-05-10 14:01:43 -07:00
Schneider Victor-tulias 68706ebe5a Focus on newly-added workspace items for accessibility.
Fixes: 177972980
Test: manual
Change-Id: Ic31a940aba7bd08eb9d4236d9c963006a18c9f4d
2021-05-10 20:39:22 +00:00
Winson Chung 7bce233fb4 Merge "Removing some unused logs" into sc-dev 2021-05-10 20:15:43 +00:00
Schneider Victor-tulias 05d883452f Enable smartspace card dismissals
Test: none
Bug: 184179894
Change-Id: I2529dc1ef8574f2eb6cec8d6b9de47bdf20a7ed2
2021-05-10 13:15:10 -07:00
Alex Chau a02eddc144 Handle config changes in Launcher
- This is practically a revert to http://ag/c/13687966/5 and refactored to use DisplayController.DisplayInfoChangeListener
- Make Launcher handle size and density change so transition is less janky when screen size changes
- Added fix in RecentsView to update state and TaskView when display profile changes
- Removed 720dp specific resoureces
- Removed unused widget_section_indent
- Removed unnecessary all_apps_background_canvas 600dp override that is not needed in AllApps+
- Moved remaining dp specific into DeviceProfile
- Simplified allowRotation logic to use single variable in DeviceProfile to determine if allow rotation is enabled by default

Fixes: 180803696
Test: manual
Change-Id: Iea0a7d1a0e14dc3613152dd3b3887450a2e1fc2f
2021-05-10 18:50:02 +01: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
Hyunyoung Song a1b7851b53 Revert "Don't crash on dialer app target search results"
This reverts commit 67edf1654c.

Reason for revert: this was temporary launcher side fix until aiai 
proper fix was made and dropped to the system image. 

Bug: 186412929
Change-Id: Idd3abe3fe2104c316aeff16e11d8110dfee7e0d1
2021-05-06 21:55:51 +00: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