Commit Graph

3899 Commits

Author SHA1 Message Date
TreeHugger Robot 70cc9ffe7c Merge "Remove the Share button option from Overview." into sc-v2-dev 2021-09-30 04:11:47 +00:00
Tony Wickham 6db0cf1e22 Merge "Aniamte stashed handle color changes" into sc-v2-dev 2021-09-30 02:17:18 +00:00
Tony Wickham ad3de8eab8 Merge "Update stashed handle region to only include the handle" into sc-v2-dev 2021-09-30 02:17:03 +00:00
Tony Wickham 0ede0fa405 Aniamte stashed handle color changes
Test: Swipe from light background to dark background, ensure handle animates the color change
Bug: 193938970
Change-Id: I815c3a364019935bdf3d69309e695ac34b119c5e
2021-09-29 16:19:49 -07:00
Tony Wickham a93e158352 Update stashed handle region to only include the handle
Before it included the whole width/height of the view, rather than just the outline where the handle is drawn.

Test: Swipe up from a light app on dark wallpaper, ensure handle changes color as soon as the white app background is past halfway through the handle
Bug: 193938970
Change-Id: Ic8b83f60976f05b8ff56590422bd9b2fa6140e76
2021-09-29 15:47:58 -07:00
Samuel Fufa abb827b376 Merge "[Foldable] Apply max width to AllApps in unfolded state." into sc-v2-dev 2021-09-29 22:07:42 +00:00
Zak Cohen 283ee7d74b Remove the Share button option from Overview.
It has never been enabled, and is not plan of record.

Bug: 201446691
Test: local and updated unit tests

Change-Id: I5ac6d40ba1dbcf28de4355cc51fff74cfb37ebc6
2021-09-29 14:43:27 -07:00
Pat Manning 429b8df180 Merge "Add TAPL tests for hiding the actions view when scrolling away from focused task in overview." into sc-v2-dev 2021-09-29 21:03:46 +00:00
Zak Cohen ba4b8e145d Merge "Remove RecentsExtraCard plugin hook." into sc-v2-dev 2021-09-29 20:15:14 +00:00
Schneider Victor-tulias 5b563706e3 Merge "Update gesture navigation tutorial for foldable devices." into sc-v2-dev 2021-09-29 19:42:43 +00:00
TreeHugger Robot 42b5b78bbf Merge "Remove check that system rotation must be allowed for recents rotation to be allowed." into sc-v2-dev 2021-09-29 16:36:09 +00:00
Pat Manning da71f41263 Remove check that system rotation must be allowed for recents rotation
to be allowed.

This check existed before the user was able to rotate via the rotation
button while autorotate setting is off.

Test: manual
Fix: 201511975
Change-Id: I920886cb42ec5b8f4d3eb0bdd80b216cd7c3c849
2021-09-29 14:06:55 +00:00
Pat Manning 9fe8109b35 Merge "Prevent repeated haptics on task dismissal." into sc-v2-dev 2021-09-29 13:28:37 +00:00
Pat Manning 35231f3041 Add TAPL tests for hiding the actions view when scrolling away from
focused task in overview.

Test: TaplTestsQuickstep.java
Bug: 197630182
Change-Id: Ie44a5bd99d7c9ffbc5405973c0ba1950cd90665c
2021-09-29 10:30:18 +00:00
Vinit Nayak 31e400d62e Merge "Add toast instructing user to select second split app" into sc-v2-dev 2021-09-29 02:48:58 +00:00
Zak Cohen 323b1e4f43 Remove RecentsExtraCard plugin hook.
This plugin hook never really worked properly. The touch handling was
always a bit off and it complicates the code.

Bug: 201460301
Test: Local
Change-Id: I19401be18f859b3bdf408a2e4aacd95ca95d35cc
2021-09-28 16:11:56 -07:00
Tony Wickham 1ad55e6ab5 Merge "Use falllback animation when going back to no icon" into sc-v2-dev 2021-09-28 21:19:38 +00:00
Zak Cohen c1359c448d Merge "Remove Content Push prototype." into sc-v2-dev 2021-09-28 20:16:23 +00:00
Pat Manning 0f5a1e3661 Prevent repeated haptics on task dismissal.
Test: manual
Fix: 200813011
Change-Id: I74ce053023935a037074db25552f730d30f8ef52
2021-09-28 17:35:58 +00:00
Vinit Nayak 8217054355 Add toast instructing user to select second split app
Fixes: 200131929
Change-Id: I1825fba64a42cef1d067bd5e085273d1eca68fce
2021-09-28 10:26:21 -07:00
Tony Wickham b43374e9f9 Use falllback animation when going back to no icon
Test: Open settings from the shade (not on home screen) and go back, ensure animates reasonably
Bug: 197656915
Change-Id: I78baa3ad03655f66b9e9727e62247ec8a15f3bf9
2021-09-28 09:19:47 -07:00
TreeHugger Robot 9c871ae7b6 Merge "Reset split selection state on animation end instead of success" into sc-v2-dev 2021-09-28 03:43:09 +00:00
Vinit Nayak df7a526931 Merge "Unbind service only if it was bound" into sc-v2-dev 2021-09-27 23:56:21 +00:00
Vinit Nayak 29e900b907 Reset split selection state on animation end instead of success
When overview button tapped in while in overview,
the animation to undo split gets cancelled
(probably because Launcher gets destroyed before the animation
can fully run successfully)

Fixes: 201011797
Test: Same steps in bug don't cause placeholder view
to be shown

Change-Id: I2ea1eac637d6f2a3185d50d01601d3588ec9f535
2021-09-27 16:14:58 -07:00
Vinit Nayak a26e4f8e43 Unbind service only if it was bound
Removed unused SplitPlaceholderView

Fixes: 200004580
Change-Id: I54ee819260ad6e4e6da2d3efafd38bad0336486e
2021-09-27 14:56:45 -07:00
Schneider Victor-tulias ab60c1fc6e Update gesture navigation tutorial for foldable devices.
- Updated mock conversation layout to work on large devices.
- Added AnimatedTaskView helper view to animate previous task view.
- Added animation from single previous app to two peaking previous apps.
- Updated app orientation to work with larger screens (forced protrait was causing letterboxing).

Test: manual, tested tutorial on non-foldable device, foldable device (closed, opened in landscape, opened in portait and switching between the three)
Bug: 198434693
Bug: 187701213
Known issue: 200579260

Change-Id: I98cb269f7d25985989cf66e791bf535228ab5293
2021-09-27 19:55:53 +00:00
Zak Cohen b48b84634f Remove Content Push prototype.
Bug: 201314561
Test: Build and run
Change-Id: I64f5ab40b349d68a50b0f49361f019456667b933
2021-09-27 11:57:50 -07:00
TreeHugger Robot fd583efb71 Merge "Remove screen actions plugin" into sc-v2-dev 2021-09-27 17:52:28 +00:00
TreeHugger Robot d58e7b6fc4 Merge "Cleanup split screen offset in TaskViewSimulator" into sc-v2-dev 2021-09-25 04:06:48 +00:00
Jonathan Miranda 2eb7511781 Merge "Avoids animating the background when launching app targets are translucent." into sc-v2-dev 2021-09-25 02:04:48 +00:00
Zak Cohen 0ba6058f8c Remove screen actions plugin
Bug: 201115460
Test: local build
Change-Id: I22774e464d1230fffff3d512b0b906f999d51080
2021-09-24 23:11:18 +00:00
Jon Miranda 3940470bed Avoids animating the background when launching app targets are translucent.
Bug: 200052247
Test: Pause an app, click on paused app and ensure background does not animate
Change-Id: Ib0a7cac0ab866441dd8fb27831a8333d0c931723
2021-09-24 16:00:25 -07:00
Tony Wickham 2fb815b2fd Cleanup split screen offset in TaskViewSimulator
- Removed mRunningTargetWindowPosition and mSplitOffset, as they countered each other out anyway
- Removed PagedOrientationHandler#setLeashSplitOffset() since it's no longer used

Test: Swipe up from split and non split apps in both orientations on large and small devices, with and without home rotation enabled
Bug: 200817624
Change-Id: I78a80cbc718ee38a8933fa323798fb436710d59f
2021-09-24 15:37:30 -07:00
sfufa@google.com de0132939b [Foldable] Apply max width to AllApps in unfolded state.
Since we are applying the same iconWidth in AllApps as Workspace in unfolded state, this change restricts AllApps to span only the area required to display AllApps contents and not span full available width. Unfolded/phone behavior remains the same.

Bug: 199959857
Bug: 194259694
Test: visual
Change-Id: Ie5658d566f20e825e666ef17db79a87b07dc2936
2021-09-24 15:18:01 -07:00
Tony Wickham 9a0d98f483 Merge "Fix right split screen app going to wrong target" into sc-v2-dev 2021-09-24 22:01:06 +00:00
Schneider Victor-tulias 405400c2fe Merge "Fix stalled gesture navigation tutorial." into sc-v2-dev 2021-09-24 19:12:26 +00:00
Vinit Nayak f2907c6ce3 Merge "Hide split options for focused task." into sc-v2-dev 2021-09-24 17:18:02 +00:00
Iris Yang 8bf24a58ae Move/Launch task on the TaskView's display.
Add ActivityOptions#setLaunchDisplayId to the display that the TaskView
is currently on. So the task will be moved to the display as the user is
interactiving with.

This change is adding ag/15604010 back since b/197293995 is fixed.

Bug: 183461428
Test: Manually tested using Exo. Open appliction(e.g.Calculator) on
Exo virtual display, and tapping on the phone's recents to bring the
application back to phone.
The demo video  https://drive.google.com/file/d/1JMncvsI-VPosK4ql2xeVA8csVAF7Rb16/view?usp=sharing&resourcekey=0-PYRw1k3KdtY0-KZNo6OqjQ

Change-Id: I39b1825b69d55001f66ee01a982e3cd366da56bd
2021-09-24 05:27:32 +00:00
Vinit Nayak e046ea22e9 Merge "Don't show taskbar when keyguard occluded" into sc-v2-dev 2021-09-24 03:02:34 +00:00
Vinit Nayak e9fbcc4aeb Merge "Reset floating split task view after remote animation finished" into sc-v2-dev 2021-09-24 01:18:03 +00:00
Tracy Zhou ba086b8125 Merge "Hide task bar icons when notification shade is expanded" into sc-v2-dev 2021-09-24 00:57:26 +00:00
Vinit Nayak 8df5833bc7 Hide split options for focused task.
Fixes: 197245395
Test: Tap app icon on focused task,
no split options.

Change-Id: I329ee3d6e911c16ba2f3b265e2eb42466369df28
2021-09-23 17:22:25 -07:00
Vinit Nayak 03396d4fba Merge "Allow tapping on app icon for second split app." into sc-v2-dev 2021-09-24 00:17:57 +00:00
Tony Wickham 2424f1f3b5 Fix right split screen app going to wrong target
- applyWindowToHomeRotation() to both Matrix's individually
- Move matrix.postTranslate(mSplitOffset) into applyWindowToHomeRotation so it applies both during swipe up and animation to home

Test: Swipe up from vertical and horizontal split screen, ensure both app windows go towards the same target
Fixes: 200817624
Change-Id: I5769da2adb1abb967fa465fc8371b5c9484a32d0
2021-09-23 16:24:21 -07:00
Jerry Chang d3ceb3dc88 Reset floating split task view after remote animation finished
Move reseting floating task view for entering split after remote
animation finished to prevent the floating task view disappear before
opening split task view being visible and causing flicker.

Bug: 199377815
Test: Manual check the flicker disappear
Change-Id: I4a864335972842570c61291a7a0c423edeb74578
2021-09-23 16:01:18 -07:00
Vinit Nayak ea7e9a48fd Don't show taskbar when keyguard occluded
* Show only back button in taskbar for 3
button nav.

Fixes: 199406716
Test: From lock screen view home controls
or double-tap camera, no taskbar shown.

Change-Id: Ia603c7dbe584e3fab62365de4fc5a790c48d1340
2021-09-23 15:55:22 -07:00
Vinit Nayak 9299a743af Allow tapping on app icon for second split app.
Fixes: 200851336
Test: Split with one app from overview,
tap on app icon for second app. Gets
selected as second app.

Change-Id: I312169fe7bc42007c2f1a0146a5fef5f8d5f46d6
2021-09-23 14:46:59 -07:00
Jon Miranda 13519e4402 Significantly reduce gesture feedback when swiping up to home screen.
- Uses overscroll damping logic to reduce the velocity
- The start to target rect interpolation can be from the
  start, center, or bottom of the rect depending on where the item
  is on the workspace. This reduces the  amount of distance needed to
  travel between, which helps further reduce gesture feedback.

Bug: 173107751
Test: test closing app that is on:
      -  top row of home screen
      -  middle of home screen
      - in hotseat

Change-Id: I055dd61ca3491807109ff2f6c501bf710c8d340f
2021-09-23 20:13:40 +00:00
Vinit Nayak 5dded93a72 Merge "Shorten and center TaskMenuView for landscape" into sc-v2-dev 2021-09-23 05:55:17 +00:00
Tony Wickham d523841ab4 Merge "Allow visual stashing when going to overview in tests" into sc-v2-dev 2021-09-23 00:39:01 +00:00