Commit Graph

32664 Commits

Author SHA1 Message Date
TreeHugger Robot
3e366d6529 Merge "Fix foreground position during widget home animation" into sc-dev 2021-06-15 17:59:48 +00:00
Alina Zaidi
b5459c9ba5 Merge "Update bottom widget picker and pin widget dialog layout in landscape mode." into sc-dev 2021-06-15 17:23:02 +00:00
Santhosh Thangaraj
4d61c56200 Merge "Fix the page number based Seen impression." into sc-dev 2021-06-15 15:20:40 +00:00
Alina Zaidi
dfa6aa828c Update bottom widget picker and pin widget dialog layout in landscape mode.
Bug: 189726613
Test: Manually tested
Change-Id: I048740f949571423ab53bbb01e7128d9981b1ce7
2021-06-15 14:27:57 +01:00
Jonathan Miranda
bea8267854 Merge "Address LAUNCHER_APP_LAUNCH_FROM_ICON jank." into sc-dev 2021-06-15 00:32:40 +00:00
Jon Miranda
0750f03c96 Address LAUNCHER_APP_LAUNCH_FROM_ICON jank.
- Delay app launch animations by a frame, and skip logic to skip the first frame.
- Note the icon pressed state animation still occurs, so there is still some
  visual feedback for the user that something is happening.

Bug: 181901105
Test: ensure animation still looks smooth (using window animation scale & record in slow mo)
Change-Id: Ia904b8b96301042c900e0589f33fc625c1c1148b
Merged-In: Ia904b8b96301042c900e0589f33fc625c1c1148b
2021-06-14 23:29:29 +00:00
TreeHugger Robot
22ed03ee04 Merge "Excluding corner radius from quick switch gesture." into sc-dev 2021-06-14 23:27:48 +00:00
Hyunyoung Song
8c0f8fba9c Merge "Fix NPE inside REcyclerViewFastScroller" into sc-dev 2021-06-14 23:18:22 +00:00
Samuel Fufa
b8cec440cc Merge "[Build Blocking] Fix conflicting resource IDs for work tab" into sc-dev 2021-06-14 22:33:13 +00:00
Samuel Fufa
200c734e8e [Build Blocking] Fix conflicting resource IDs for work tab
Bug: 186857875
Bug: 191080190
Test: local
Change-Id: I7adbd79a061af4d07c7426db1496f8c319902266
2021-06-14 22:30:57 +00:00
Hongwei Wang
5a2a6e7325 Merge "Calculate the position from start bounds for auto-enter PiP" into sc-dev 2021-06-14 22:21:19 +00:00
vadimt
7d3f73c856 Excluding corner radius from quick switch gesture.
Test: forrest on new devices
Bug: 190638716

Change-Id: Iefa89e040ab77869db7022d7c535a5546e03ae3c
2021-06-14 15:05:23 -07:00
TreeHugger Robot
ce7084f45d Merge "Removing UB flavor of TAPL library" into sc-dev 2021-06-14 21:05:33 +00:00
TreeHugger Robot
b32c61a6cc Merge "Logging UPs and DOWNs that TAPL injects" into sc-dev 2021-06-14 20:55:48 +00:00
Jonathan Miranda
11bf817e86 Merge "Folder polish - update color extraction, fix contrast issues." into sc-dev 2021-06-14 20:11:50 +00:00
Samuel Fufa
b8b822a74b Merge "Introduce inline education for work profile" into sc-dev 2021-06-14 19:29:28 +00:00
TreeHugger Robot
012e978e31 Merge "Ensure that the cancel and end listener are called when cancelling state animation" into sc-dev 2021-06-14 19:16:47 +00:00
Jon Spivack
3e48c63180 Merge "Send NIU Actions Intents to default Assistant" into sc-dev 2021-06-14 18:13:34 +00:00
Jon Miranda
5688010306 Folder polish - update color extraction, fix contrast issues.
- Also fixes open/close animation when items were not getting clipped
  due to folder not being measured yet.

Bug: 190210234
Bug: 190164147
Test: manual
Change-Id: I230c33d7e4e1871d8d702737c56c79ce46504b8f
Merged-In: I230c33d7e4e1871d8d702737c56c79ce46504b8f
2021-06-14 17:54:19 +00:00
Jonathan Miranda
b7cab26529 Merge "Do not add padding left/right when cell layout border spacing exists." into sc-dev 2021-06-14 17:29:19 +00:00
Winson Chung
9f5ba22d74 Merge "Skip entering PIP when dismissing auto-enter pip task" into sc-dev 2021-06-14 16:39:19 +00:00
Winson Chung
c5d50f710a Skip entering PIP when dismissing auto-enter pip task
- Revert some changes from ag/14827090, we don't actually need to
  screenshot when dismissing, but we do need to prevent pip

Fixes: 190751761
Test: Swiping up from YT -> PIP
      Swiping up from YT to Overview to home -> PIP
      Swiping up from YT to Overview
Change-Id: I2057467d5146be6edc382d3745a1e5269cd76a6b
Merged-In: I2057467d5146be6edc382d3745a1e5269cd76a6b
2021-06-14 16:39:11 +00:00
Hyunyoung Song
a9aeebc5bb Fix NPE inside REcyclerViewFastScroller
Bug: 190939643
Test: manual
Change-Id: Ic01111bb1389b2fa84d86c0ecc20f1eec0940e51
2021-06-14 09:12:30 -07:00
Stevie Kideckel
d541300f0e Merge "Use LayoutManager.onLayoutCompleted as a signal that content has changed" into sc-dev 2021-06-14 09:18:06 +00:00
Takeshi Hagikura
7937cecde2 Merge "Update the colors of the tabs of work profile pagination" into sc-dev 2021-06-14 07:54:39 +00:00
Samuel Fufa
154ad76f40 Introduce inline education for work profile
Bug: 186857875
Test: local
Change-Id: I796b04fbb3ffc714a01104107774819d35034f93
2021-06-14 01:01:42 -05:00
Samuel Fufa
2f346b8666 Merge "[AllApps][Work] Introduce work toggle Fab" into sc-dev 2021-06-14 02:34:58 +00:00
Samuel Fufa
45e0e26971 [AllApps][Work] Introduce work toggle Fab
Screenshot: https://screenshot.googleplex.com/C4r7kKPxv3PKdyN
Bug: 186856928
Test: on-device
Change-Id: Ifd8ce20fcf2247a6e80537dc7631458e594a8a63
2021-06-13 20:01:20 -05:00
Winson Chung
a50c38c457 Merge "Ignore source hint rect if it is too small" into sc-dev 2021-06-13 22:55:48 +00:00
Winson Chung
b009faca5e Merge changes Ib7d3a07e,Ic22ccf17 into sc-dev
* changes:
  Disallow auto-enter PIP when there is an existing PIP
  Don't use icon home animator when entering PIP
2021-06-13 20:50:51 +00:00
Winson Chung
be2a0989ce Merge "Ensure we pass the pointer id to the velocity tracker and not the index" into sc-dev 2021-06-13 20:49:58 +00:00
Winson Chung
beebc45e5d Merge "Add sdk check to recyclerviewfastscroller" into sc-dev 2021-06-13 03:13:49 +00:00
TreeHugger Robot
cfa0baeca6 Merge "Polish the gesture navigation tutorial sandbox" into sc-dev 2021-06-13 01:25:56 +00:00
Stevie Kideckel
2f0c5ac3c8 Merge "Account for header margin depending on which header is selected" into sc-dev 2021-06-12 21:47:01 +00:00
Winson Chung
62b5692736 Ignore source hint rect if it is too small
- When the source hint rect is too small, we can't do a nice transition
  when going home (it would require scaling the surface up to fit the
  rect, which conflicts spatially with the crop down to launcher
  icon/pip), so in this case, just fallback to the overlay

Bug: 190464560
Test: Enter YT Pip, play video, swipe it down to miniplayer then
      enter pip
Change-Id: I44b253ca440f6d2ca0eb20eef3454c5d4e3ae3e9
2021-06-12 13:58:32 -07:00
Winson Chung
954681d837 Disallow auto-enter PIP when there is an existing PIP
- Remove some deprecated calls when registering task stack listeners

Bug: 190464560
Test: Enter YT Pip, try to enter another auto-enter PIP app
Change-Id: Ib7d3a07effadb7b13f7c37f938741e27cf0e254e
2021-06-12 13:58:32 -07:00
Winson Chung
5300fce94f Don't use icon home animator when entering PIP
- If the app supports pip, can just do the fallback workspace
  home animation since the app will not be going to the icon

Bug: 190464560
Test: Open YT, swipe up, ensure it goes to the icon,
      Reopen YT video, swipe up, ensure it goes into PIP without
      icon animation
Change-Id: Ic22ccf17c664b9941ed944c0e39dc1f8d4efa84a
2021-06-12 13:58:17 -07:00
Cyrus Boadway
f2ec20325b Merge "Add activity-start/return animation to widget configuration" into sc-dev 2021-06-12 17:15:11 +00:00
Cyrus Boadway
3616f29f83 Merge "Use the splash screen background color as the fallback background color" into sc-dev 2021-06-12 17:14:49 +00:00
TreeHugger Robot
76f5572648 Merge "Fix CellLayout cast exception when drag is canceled" into sc-dev 2021-06-12 12:24:06 +00:00
Jon Miranda
af6ebe87ea Do not add padding left/right when cell layout border spacing exists.
Bug: 188094809
Test: enable layout bounds and view text spanning entire cell
Change-Id: Ia7ed45d0e844b2594a8708e03fe385a321345f5e
2021-06-11 18:02:49 -07:00
Hyunyoung Song
ebd88cb00b Add sdk check to recyclerviewfastscroller
Bug: 189982238
Test: builds
Change-Id: I2298a67fd957cd2a77c8e5e4c34b828c044f1a61
2021-06-11 15:55:37 -07:00
Cyrus Boadway
5fcc3a90b0 Fix foreground position during widget home animation
The home return animation applies a position animation to all views in
the workspace. Since the widget uses a GhostView of the original widget
to represent the foreground of the animation, that animation was
reflected in the foreground's positioning.

The CL creates an ignore list of workspace views to which an animator
should not be applied.

Bug: 190488979
Test: manual
Change-Id: I5a86165e945336693eedd253a02bda1e1eb6662d
2021-06-11 22:00:53 +00:00
Sunny Goyal
a7b018535b Ensure that the cancel and end listener are called when cancelling state animation
Bug: 190856140
Test: Manual
Change-Id: Ib6b869445cee9fad2a97a590d27429140f2b3ba9
2021-06-11 14:53:55 -07:00
vadimt
1e1ad449a8 Logging UPs and DOWNs that TAPL injects
Test: presubmit
Bug: 190748682
Change-Id: I82e792724bab178a9c3ca190609af913fbaf4a87
2021-06-11 14:10:45 -07:00
Jon Spivack
77edb686d7 Send NIU Actions Intents to default Assistant
This changes the recipient for NIU Actions from a package hard-coded in a config file to the currently selected default Assistant. The user can change this under Settings -> Default apps.

ImageActionUtils has also been updated to handle the case where its
Intents cannot be resolved, preventing a crash if the user sets the
default Assistant to something that cannot receive NIU Actions.

Bug: 186655099
Test: Manual (Pixel 3A, set default Assistant to Google Go and None)
Test: m -j RunLauncherGoGoogleRoboTests
Change-Id: I03b93597092575902d507615f32b63f4050c4c69
2021-06-11 13:58:57 -07:00
vadimt
6c2e3b3031 Removing UB flavor of TAPL library
Test: presubmit
Bug: 187761685
Change-Id: Ide5060886f1b9856c1046bc2028f55418e8c1e0e
2021-06-11 13:34:57 -07:00
Steven Ng
77a1393c44 Fix CellLayout cast exception when drag is canceled
Test: Long press a widget and then release when the resize frame is
      shown. Then, click the content of the widget to launch the
      widget's activity. Go back to home screen and then immediately
      long press the same widget again. No crash was observed.
Bug: 189814379
Change-Id: I4232ecf9d9d9efaba817b7777314f0814bb7ef21
2021-06-11 20:18:21 +01:00
Schneider Victor-tulias
7fec8fc10c Polish the gesture navigation tutorial sandbox
- Updated in-memory tutorial steps to a array so we can better track the tutorial progress after changing the theme.
- Added a 1.5 second delay for the gesture video when the user first starts a step, and when the app resumes.
- Updated the tutorial step indicator color: previous color was invisible against the background.

Bug: 188972959
Test: manual
Change-Id: Ia1a67f7cd9e7ed9802dbc0d88d1e3b432acfa127
2021-06-11 12:16:28 -07:00
Jonathan Miranda
d88f572864 Merge "Adding color back to popup container." into sc-dev 2021-06-11 17:16:27 +00:00