Commit Graph

20478 Commits

Author SHA1 Message Date
Alex Chau dfde4d96ea Focus running task in overview grid
- calculateTaskSize now returns the Rect for focused task
- Introduced calculateGridTaskSize for non-focused task, and translate non-focused tasks to fit the grid
- As Task Rect is now vertically centered, removed ClearAllButton's grid vertical translation
- When ClearAllButton is not shown (e.g. quickswitch), make sure ClearAllButton's scroll won't be used when page snapping. This happens when page scrolls are translated so they're negative.
- Added back ActionsView when task is focused below the TaskView, which become invisible as you scroll
- In Modal state, move the ActionsView down so it won't cover the TaskView

Bug: 175939487
Test: manual
Change-Id: Idfa94a51f856418adc0503cf04211dcb4b1814fe
2021-04-01 14:52:25 +01:00
Winson Chung 68416ba426 Merge "Expose the full task info with the remote animation target" into sc-dev am: 80988abae3
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13927514

Change-Id: Iaf10c3f0dd9c18dd5a191270333122bde652b001
2021-04-01 04:00:05 +00:00
Winson Chung 80988abae3 Merge "Expose the full task info with the remote animation target" into sc-dev 2021-04-01 03:56:56 +00:00
Sunny Goyal 58530bd64b Fixing notification dots settings not updated properly
Also avoiding settings cache reset whenever someone registers
a new listener

Bug: 184200027
Test: Manual
Change-Id: I0c8b7084b6b4656102e9041b779b80a98624ddd8
2021-03-31 15:57:49 -07:00
Marvin Bernal 100256c7c4 Merge "Add System Back function to SystemUiProxy" into sc-dev am: a090cfc836
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14040067

Change-Id: I8466fe6457470e4bb79895fe6d4053994e030d5d
2021-03-31 21:12:18 +00:00
Zak Cohen 9ca302cc4f Merge "Overview - update UI to use solid color scrim." into sc-dev am: 00611188e5
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14036591

Change-Id: I2aa43861a43616f018604a42625fb34fa543dfb1
2021-03-31 21:11:37 +00:00
Marvin Bernal a090cfc836 Merge "Add System Back function to SystemUiProxy" into sc-dev 2021-03-31 20:59:03 +00:00
Zak Cohen 00611188e5 Merge "Overview - update UI to use solid color scrim." into sc-dev 2021-03-31 20:34:00 +00:00
Sunny Goyal 157a9ee7dd Removing some unused classes
Bug: 184183801
Test: Manual
Change-Id: I946b4b4d486d52e467bb3df7dcac65e534803b7d
2021-03-31 12:59:57 -07:00
Zak Cohen a547b781ee Overview - update UI to use solid color scrim.
Also required updates to colors and status bar icons to match with new
color.

Bug: 179922117
Test: local build and flash on two devices

Change-Id: Ibec54107f52c01f125e6d100abe32434f2067b71
2021-03-31 11:25:41 -07:00
Alex Chau 638d50b035 Merge "Changes page alignment in PagedView calcualtion" into sc-dev am: 21dfadab76
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14018930

Change-Id: Ic9d43d0a62fe2b92e04609a149438dc0ad289479
2021-03-31 11:03:01 +00:00
Alex Chau 21dfadab76 Merge "Changes page alignment in PagedView calcualtion" into sc-dev 2021-03-31 10:36:12 +00:00
TreeHugger Robot 7afac06821 Merge "Using an independent drawable for rounded corners" into sc-dev am: 70c3d5f98b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14015805

Change-Id: Ie3e1c530bf5c2a361707679f15d52a6633c05c73
2021-03-31 09:42:39 +00:00
TreeHugger Robot 70c3d5f98b Merge "Using an independent drawable for rounded corners" into sc-dev 2021-03-31 09:02:00 +00:00
Marvin Bernal 3804f91a46 Add System Back function to SystemUiProxy
Bug: 183988752
Test: mp launcher
Change-Id: Iaddd1f8a9440c80840209d653c0b3e59b8138a26
2021-03-31 01:37:18 +00:00
Tony Wickham ffba11d89a Merge changes I2af1792e,Ice314d46,Ib17d4a5e into sc-dev am: 7e7116278b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13989016

Change-Id: Id2fbb744423c5160f7c7fb4d5e746325454c9f53
2021-03-30 23:11:55 +00:00
Tony Wickham 7e7116278b Merge changes I2af1792e,Ice314d46,Ib17d4a5e into sc-dev
* changes:
  Invert StateAnimationConfig.PLAY_ANIMATION as SKIP_ALL_ANIMATIONS
  Remove Overview atomic animation support
  In 2 button mode, animate to HINT_STATE instead of OVERVIEW directly
2021-03-30 22:27:07 +00:00
Sunny Goyal 940c27ef1a Using an independent drawable for rounded corners
Bug: 183641907
Test: Manual
Change-Id: I3114d43d07c03884348e1c33805545f19bb8d540
2021-03-30 14:47:44 -07:00
Sunny Goyal c12e51db94 Merge "Simplifying all-apps seach pipeline" into sc-dev am: 07fb2fea34
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14022231

Change-Id: I8e396949acabf56638574b16b9b70025a8092aa1
2021-03-30 20:09:16 +00:00
Sunny Goyal 07fb2fea34 Merge "Simplifying all-apps seach pipeline" into sc-dev 2021-03-30 19:50:23 +00:00
Hongwei Wang c9bf5df98e Merge "Pass the whole auto pip transaction to recents animation" into sc-dev am: d21362a5a7
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13922245

Change-Id: I34a6de51cbcd5aa91253fb768a6ed6f1f676992a
2021-03-30 19:48:35 +00:00
Tony Wickham f6c65e5093 Merge "Fix Home->Overview not being logged in 0 button mode" into sc-dev am: 99af1b2954
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13998786

Change-Id: I28450e3aa4a88a36beed5a2e9377be9c61ec0b36
2021-03-30 19:47:17 +00:00
Hongwei Wang d21362a5a7 Merge "Pass the whole auto pip transaction to recents animation" into sc-dev 2021-03-30 19:26:24 +00:00
Tony Wickham 99af1b2954 Merge "Fix Home->Overview not being logged in 0 button mode" into sc-dev 2021-03-30 19:22:15 +00:00
Sunny Goyal 04e9f39f19 Simplifying all-apps seach pipeline
Bug: 183607616
Test: Verified on device
Change-Id: Id7ded3c244b747a577cdfcf298db6dddf19fa4eb
2021-03-30 10:07:32 -07:00
Alex Chau b5c4d1108f Changes page alignment in PagedView calcualtion
- Align pages to right (instead of left) in RTL, to make scroll calculation for grid overview easier for out of orientation tasks
- Changed TaskView pivot direction to be consistent with page alignment
- Add scroll offset for ClearAllButton to align to left in RTL
- Fixed Workspace scroll issues in RTL, and removed needs to use panelCount when calculating page scroll

Bug: 175939487
Test: Test carousel/grid overveiw, Workspace, Folder scroll view for normal/RTL
Change-Id: Ic0ba88e5d58638e1149d97a68a978d80fbf26774
2021-03-30 12:05:16 +01:00
Zak Cohen d811dd11d7 Merge "Overview - extract AssistContentRequester logic for reuse." into sc-dev am: d9efc0b273
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13989046

Change-Id: I9198b69382bbe70e55d92a7425429da8fe3a5bf9
2021-03-30 03:04:31 +00:00
Zak Cohen d9efc0b273 Merge "Overview - extract AssistContentRequester logic for reuse." into sc-dev 2021-03-30 02:39:51 +00:00
Vadim Tryshev 73048e6fa3 Merge "Fixing a leak in WallpaperColorInfo" into sc-dev am: 419c1092e3
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14020290

Change-Id: Id8a5f3c0373e2a0d8ee9bab9f9e617766cfe59a2
2021-03-30 01:57:29 +00:00
Vadim Tryshev 419c1092e3 Merge "Fixing a leak in WallpaperColorInfo" into sc-dev 2021-03-30 01:13:40 +00:00
vadimt 1b54846254 Fixing a leak in WallpaperColorInfo
Nulling temp listeners after use

Test: presubmit
Bug: 181356264
Change-Id: I6cace47f1424e2fe59a283bb0e16de523875b6cf
2021-03-29 14:47:06 -07:00
Pat Manning 31ff828ce1 Merge "Shift only tasks within current grid row upon task dismissal." into sc-dev am: adcc940d4b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13955525

Change-Id: I8cd98e92c9e65a07e81220169c5e16c994391635
2021-03-29 21:04:31 +00:00
Pat Manning adcc940d4b Merge "Shift only tasks within current grid row upon task dismissal." into sc-dev 2021-03-29 20:38:00 +00:00
Tony Wickham 52bbcc3976 Invert StateAnimationConfig.PLAY_ANIMATION as SKIP_ALL_ANIMATIONS
This allows the default flag to be 0 instead of PLAY_ANIMATION, and is
aligned with the existing SKIP_OVERVIEW and SKIP_DEPTH_CONTROLLER
flags.

Test: Navigate to various states, works as before
Bug: 175137718
Change-Id: I2af1792e7fbd5bca82afb225290fd6b545368dcf
2021-03-29 11:59:14 -07:00
Tony Wickham 6cd95cd2d8 Remove Overview atomic animation support
- Remove PLAY_ATOMIC_OVERVIEW_SCALE and PLAY_ATOMIC_OVERVIEW_PEEK
- Remove complicated parallel atomic animation support from
  AbstractStateChangeTouchController and subclasses
- Remove some code related to going between Overview <-> AllApps

Test: Swipe between states in all 3 navigation modes
Bug: 175137718
Change-Id: Ice314d46946c3a983cdc6ccf1a67effb5da9156e
2021-03-29 11:59:06 -07:00
Tony Wickham c5d168da82 In 2 button mode, animate to HINT_STATE instead of OVERVIEW directly
When reaching HINT_STATE_TWO_BUTTON, we goToState(OVERVIEW) with a
haptic, to keep the same feeling as before.

Test: Swipe up from home on nav bar, ensure it goes to overview
Bug: 175137718
Change-Id: Ib17d4a5e9e33b8bf9b074f926faa6d0e2fb487fa
2021-03-29 11:58:50 -07:00
Vadim Tryshev 75270c6243 Merge "Showing DWB remaining time for work profile apps" 2021-03-29 18:56:35 +00:00
Alex Johnston 8786016e85 Block recent work profile apps content capture
Stop data exposure of work profile by blocking
content capture of recents apps when the work
profile is locked.

Manual testing steps
* Set up work profile
* Set personal and work pattern
* Open work app, enter work pattern and
  verify content capture is possible
* Lock device
* Go to Recents and select already opened
  work app. Verify content capture is not
  possible until work pattern is entered.

Bug: 168802517
Test: manual testing
Change-Id: I3e6ba1d8645335785e8e26cdc895ea9c0017a0fd
Merged-In: I3e6ba1d8645335785e8e26cdc895ea9c0017a0fd
2021-03-29 18:12:00 +00:00
Zak Cohen 733efa1bcd Overview - extract AssistContentRequester logic for reuse.
Extract the logic for fetching AssistContent into a common reusable place.

Bug: 179705864
Test: Local build of main launcher
Change-Id: Ife37a393d93f899fa1ae460bdcf0cadff6468b04
2021-03-27 14:53:34 -07:00
Tracy Zhou 78f5a8c6ab Merge "Fix failed test in order to enable Live Tile (in the next change)" into sc-dev 2021-03-26 18:54:31 +00:00
Sunny Goyal 7cb9327c28 Merge "Moving some common functionality to IconLoaderLib" into sc-dev 2021-03-26 16:42:04 +00:00
Tracy Zhou 9d706b1ada Fix failed test in order to enable Live Tile (in the next change)
Live tile changes certain assumptions we have for tests, for example
- Launcher will not be in the resumed state after swiping up to Overview

Also, disable live tile for 3rd party launcher for now

Test: presubmit
Fixes: 169694902
Change-Id: Ifd466db0354f59290c4f66a0a2ad4c82f1169f29
2021-03-25 19:44:36 -07:00
Tony Wickham b9bbe994eb Fix Home->Overview not being logged in 0 button mode
At some point we made a change to clearState() from onDragEnd(),
which means the detector is in IDLE state instead of SETTLING. As
long as we aren't still in DRAGGING state, we should log.

Test: wwlogcat
Change-Id: I0f1098bd09cd1296b06f8cb3ebe400c2a25156ca
2021-03-25 15:11:57 -07:00
Schneider Victor-tulias 29d7648813 Merge "Add strings for gesture navigation tutorial." into sc-dev 2021-03-25 21:07:56 +00:00
Hongwei Wang 00c966a446 Pass the whole auto pip transaction to recents animation
Bug: 179720719
Test: manually using the ApiDemos app
Change-Id: I921c97c8bbba66dc5a674d1d67cff2e528e56154
2021-03-25 11:48:21 -07:00
TreeHugger Robot 0a74a35a41 Merge "Slightly improve Taskbar animations to launcher" into sc-dev 2021-03-25 18:36:37 +00:00
Pat Manning 5921dd6510 Shift only tasks within current grid row upon task dismissal.
Test: manual
Bug: 182579190
Change-Id: I656a743f41f5139ab5673862e27b48076cfc4313
2021-03-25 18:33:09 +00:00
Schneider Victor-tulias 6062b851be Add strings for gesture navigation tutorial.
Added string resources needed for the gesture navigation tutorial.

Test: none.

Bug: 169687177
Change-Id: I75b863141954f6459693dfb6f16ed0d1fff9920d
2021-03-25 11:09:57 -07:00
Sunny Goyal 572aca4ce2 Moving some common functionality to IconLoaderLib
Bug: 183641907
Test: Manual
Change-Id: Icfc7ebb140e4e1678b0715beee2e0e513e707b9e
2021-03-25 10:06:53 -07:00
Tracy Zhou 29c1e8437e Merge "Fix a memory leak" into sc-dev 2021-03-25 16:48:46 +00:00