Commit Graph

10816 Commits

Author SHA1 Message Date
Andy Wickham f7c033f5e3 Updates Back and Home tutorial animations.
Also adds Overview and Assistant for future use.

Back: https://drive.google.com/open?id=1-VWcGelSZLHQysCn4Bm1tv7vyXbeMpDX
Home: https://drive.google.com/open?id=1YnpMuZcjs3bdQwQkdCOv5px5Ktpm_aBM

Bug: 148542211
Change-Id: Iaaf24e43f24af5ffca1a040e3c0d71e7d26a2175
2020-04-30 21:44:48 +00:00
Winson Chung a7ac7192c3 Fix issue with quickswitch not updating system bar flags
- Separate the calls to minimize split and to update the flags (we only
  want to minimize in split when swiping up, but we want to update the
  flags when quickswitching as well)

Bug: 155410195
Change-Id: I56308cc0fbaa8a855383012738f129671d72feff
2020-04-30 13:58:22 -07:00
Zak Cohen 65a37ba3a9 Overview - position the modal task in the correct place. am: 7f48b0aa34
Change-Id: Ide59f3cd06d40b9f047f8d9039ca3053a410daf7
2020-04-30 19:52:05 +00:00
Zak Cohen 7f48b0aa34 Overview - position the modal task in the correct place.
video of new behavoir
https://drive.google.com/a/google.com/file/d/1vFTtjjpwamj5H7dhmB1-5JSFS6fv6vMw/view?usp=sharing


Test: local
Bug: 155205932
Change-Id: I7fe79c848af92013587de32a777645cc472ae910
2020-04-30 18:34:46 +00:00
Winson Chung 895f57f610 Bound the thumbnail insets to the launcher insets
- We currently end up using the launcher insets when swiping
  up into overview due to how we scale the target rect to
  the source bounds, but the thumbnail crop is calculated
  only from the task thumbnail insets.  For apps that are
  letterboxed, this results in a jump after the transition
  completes when we crop too far (including the letterbox)
  and end up showing the task background.

  For now, since we are just cropping by the launcher
  insets, we can also take the min of those and the
  thumbnail insets to calculate the thumbnail view crop.

Bug: 151770104
Test: Test swiping up with a normal app, a letterboxed app
      (like authenticator), an app that has no insets (like
Change-Id: I08342b19c54f9078be4613fca9024e2558403bc9
2020-04-30 11:30:05 -07:00
Lucas Dupin 006adace4f Merge "Do not blur if all apps is fully visible" into ub-launcher3-rvc-dev am: 20051e22e5
Change-Id: I0a8a74078276e1e00ecc3bffa9898392c650b742
2020-04-30 17:37:50 +00:00
Lucas Dupin 20051e22e5 Merge "Do not blur if all apps is fully visible" into ub-launcher3-rvc-dev 2020-04-30 17:11:53 +00:00
Sunny Goyal 3402f3da7d Generalizing LauncherState definition so that it can be used in RecentsActivity am: 8f96546e79
Change-Id: I1d51f79d9e3fc8eb1c194e895c03111c608fc8aa
2020-04-30 08:54:09 +00:00
Sunny Goyal 8f96546e79 Generalizing LauncherState definition so that it can be used in RecentsActivity
> Removing 'Launcher' as parameter from state methods called by StateManager
> Converting state properties to methods for easier abstraction
> Moving state handling drom state definition to activity class

Change-Id: I997627df606a7e0bb3bf32688d045a942a47fc94
2020-04-30 01:01:51 -07:00
TreeHugger Robot 734d102574 Merge "Various multi-window fixes" into ub-launcher3-rvc-dev am: 2d60935e1c
Change-Id: If002afd3a08fe25b203a6882e43f2df82385caa9
2020-04-29 23:59:57 +00:00
TreeHugger Robot 2d60935e1c Merge "Various multi-window fixes" into ub-launcher3-rvc-dev 2020-04-29 23:43:57 +00:00
Vinit Nayak 709a52074d Enable edge back gesture on app launch
We don't clear state on EdgeBackGestureHandler
when we go to Recents or Home.
A more robust solution is in the works with
WM team and will probably be built on top of this.
Needs ag/11273364 to work.

Bug: 154580671
Test: Launch app directly in landscape,
should be able to swipe home on first try.

Change-Id: Ia4c685e16645d0237f278a611f6c61f252f3b79c
(cherry picked from commit 3f3cc3e96e)
2020-04-29 23:34:57 +00:00
TreeHugger Robot cb7f93757d Merge "Dump RecentsOrientationState for bug reports" into ub-launcher3-rvc-dev am: 875f381dbb
Change-Id: I8848ee8e4d3af64a6f6315c3f8753aba11f5f205
2020-04-29 20:00:06 +00:00
TreeHugger Robot 875f381dbb Merge "Dump RecentsOrientationState for bug reports" into ub-launcher3-rvc-dev 2020-04-29 19:56:54 +00:00
Vinit Nayak 67e7b8baee Merge "Use appropriate start padding for clear all button" into ub-launcher3-rvc-dev am: 3aed7aeb67
Change-Id: Ie7a3eff5c67d124391b3cf20fdd9761f9d4641f5
2020-04-29 19:53:21 +00:00
Vinit Nayak 3aed7aeb67 Merge "Use appropriate start padding for clear all button" into ub-launcher3-rvc-dev 2020-04-29 19:31:38 +00:00
Vinit Nayak a5877307d1 Dump RecentsOrientationState for bug reports
Bug: 154951045
Test: New output shows up when running
"adb shell dumpsys activity
com.google.android.apps.nexuslauncher.NexusLauncherActivity
[--all]"

Change-Id: I5e9ace7d370eb0e9d278d7d9f7f9156674ca1a50
2020-04-29 12:19:49 -07:00
Sunny Goyal 0addbf0512 Various multi-window fixes
> Fixing scale up calculator for swipe-down
> Offsetting pivot so that the preview is aligned to bottom-right
> Allowing insets to be available in multi-window mode as well
> Offsetting taskViewSimulator appropriately in multi-window mode

Change-Id: I7da4c145efca72ef219a5ffcaf23d726812df270
2020-04-29 11:50:33 -07:00
Lucas Dupin 264cb2ff68 Do not blur if all apps is fully visible
Fixes: 155093795
Fixes: 155203546
Test: manual
Change-Id: I30f4c027e5107a199791e908acbb7ffed94e6a77
2020-04-29 17:49:02 +00:00
Jonathan Miranda 6010f5c1d0 Merge "Fix floating icon view positioning when in multiwindow mode." into ub-launcher3-rvc-dev am: 0d9a9b9336
Change-Id: Ic73efd6442d55c6a674b7dffbdb28d868ccaa22d
2020-04-29 17:47:19 +00:00
Jonathan Miranda 0d9a9b9336 Merge "Fix floating icon view positioning when in multiwindow mode." into ub-launcher3-rvc-dev 2020-04-29 17:26:33 +00:00
Jonathan Miranda 05c9e830b9 Merge "Ensure final values are set when StaggeredWorkspaceAnim is cancelled/ended." into ub-launcher3-rvc-dev am: 7a79edd48a
Change-Id: Ib7c536821ad431be6cf7dcb769d6cf821a06723c
2020-04-29 16:50:08 +00:00
Jonathan Miranda 7a79edd48a Merge "Ensure final values are set when StaggeredWorkspaceAnim is cancelled/ended." into ub-launcher3-rvc-dev 2020-04-29 16:37:50 +00:00
TreeHugger Robot 29a23ee665 Merge "[Overview Actions] Fix the animation duration issue." into ub-launcher3-rvc-dev am: 606c5c4179
Change-Id: I7c953d2da6f177d536ec711ddfeef650ddff1417
2020-04-29 16:22:29 +00:00
Jon Miranda db02b11340 Ensure final values are set when StaggeredWorkspaceAnim is cancelled/ended.
Was able to repo the bug reliably when calling cancel() and
end() immediately after starting the StaggeredWorkspaceAnim.

Bug: 153584267
Change-Id: I954d38ad69e72a83535f4dd1ec21dba0f61a3cfb
2020-04-29 15:51:10 +00:00
Jon Miranda f6225830d5 Fix floating icon view positioning when in multiwindow mode.
The rect we passed in was in screen space to match the window, but needs to be
be local to launcher.

Also updated code/comments to make it more readable.

Note that the bounds of the targets being off is a separate issue b/153581126

Bug: 135195169
Change-Id: I4a8c0aa2f504bdf69342a927725cd440fb324a36
2020-04-28 21:29:51 -07:00
Vinit Nayak 54c9bc2e89 Merge "Enable edge back gesture on app launch" into ub-launcher3-rvc-dev am: e8269b3944
Change-Id: I677120f8ec5a9b23edc864d05417af982fe4abde
2020-04-29 00:30:32 +00:00
Becky Qiu 1f31915b5b [Overview Actions] Fix the animation duration issue.
Test: local
Bug: 155205932

Change-Id: Ic64762b0c7647a5c38d182c24a8cba4a354a9a83
2020-04-28 17:24:48 -07:00
Vinit Nayak e8269b3944 Merge "Enable edge back gesture on app launch" into ub-launcher3-rvc-dev 2020-04-29 00:18:22 +00:00
Sreyas 43cf2f7925 Sets icon invisible when alpha 0 (Cannot be tapped while TaskView modal)
Bug: 155177299
Change-Id: Ibedbc271837441915580577986c10fa3f0de0ae6
2020-04-28 17:05:16 -07:00
Vinit Nayak 3f3cc3e96e Enable edge back gesture on app launch
We don't clear state on EdgeBackGestureHandler
when we go to Recents or Home.
A more robust solution is in the works with
WM team and will probably be built on top of this.
Needs ag/11273364 to work.

Bug: 154580671
Test: Launch app directly in landscape,
should be able to swipe home on first try.

Change-Id: Ia4c685e16645d0237f278a611f6c61f252f3b79c
2020-04-28 13:51:43 -07:00
Vinit Nayak 72c9da7647 Bias rotation to remain in existing rotation
Change-Id: I3457dc7946838eb7e0e68a879091941ce4674a7a
2020-04-28 12:53:07 -07:00
Vinit Nayak 48ea9e9502 Use appropriate start padding for clear all button
This still shows up a bit strange with
notched phones because we are using
RecentsView padding to give ClearAll the
right amount of spacing. However, we're only
adding padding to the left and right and not
the top/bottom.
That's captured here: b/154436527

Fixes: 150389833
Test: Tested landscape/portrait/seascape
launcher, w/ RTL as well

Change-Id: I49defd58048e609a1f7a821abb97374bcbb94b9f
2020-04-27 22:44:05 -07:00
Santiago Etchebehere 82902c0da6 Merging from ub-launcher3-rvc-dev @ build 6436292
Bug:150504032
Test: manual, presubmit on the source branch
x20/teams/android-launcher/merge/ub-launcher3-rvc-dev_rvc-dev_6436292.html

Change-Id: I28d6ec42b7a6a8e779abb306cc29c9801910206f
2020-04-27 22:40:31 -07:00
Zak Cohen f1a51856c9 OverviewActions - Use launcher state to track modal state. am: a39544d562
Change-Id: Ib9e5358abd1d41e19f6186b84827729b2f345ccc
2020-04-28 00:58:26 +00:00
Zak Cohen a39544d562 OverviewActions - Use launcher state to track modal state.
Test:local

Change-Id: I44e25b95095b9a7aac4b4172c9c91fbfbf4d9ec7
2020-04-27 16:29:44 -07:00
Sreyas Rangaraju 0f12ee1138 Merge "Assistive chip: Adding background scrim for chip." into ub-launcher3-rvc-dev am: 2f04a9d271
Change-Id: I9c640522e057c4b24e4494356000a1d53105402e
2020-04-27 21:47:41 +00:00
Sreyas Rangaraju 2f04a9d271 Merge "Assistive chip: Adding background scrim for chip." into ub-launcher3-rvc-dev 2020-04-27 21:43:49 +00:00
Vinit Nayak 5664beb222 Merge "Revert "Hide shelf in 2-Button Landscape"" into ub-launcher3-rvc-dev am: b219eeab48
Change-Id: I09da22dac83efec88ef6f3a1b3e2211f85c94dc8
2020-04-27 21:40:59 +00:00
Vinit Nayak b219eeab48 Merge "Revert "Hide shelf in 2-Button Landscape"" into ub-launcher3-rvc-dev 2020-04-27 21:24:53 +00:00
Vinit Nayak 48b28027c0 Revert "Hide shelf in 2-Button Landscape"
This reverts commit 9b5795a579.

Reason for revert: b/155090034

Change-Id: If7decd54965a680d50e4474fb279ebe0002441bb
2020-04-27 20:48:49 +00:00
TreeHugger Robot fef1e5320b Merge "Fixing stagger animation not getting initialized properly" into ub-launcher3-rvc-dev am: 2ca219889b
Change-Id: I0fd5e16699f2bc4eddbb26df46ba0c2308648924
2020-04-27 20:37:30 +00:00
TreeHugger Robot 2ca219889b Merge "Fixing stagger animation not getting initialized properly" into ub-launcher3-rvc-dev 2020-04-27 20:17:16 +00:00
Sunny Goyal 9e7bf5e50c Fixing corner radius not properly scaled in TaskViewSimulator am: fd0f8b0d1a
Change-Id: I9fa130d1878f1623be7f3a86a3412be84ce30ed7
2020-04-27 19:29:09 +00:00
Sunny Goyal 017a8681c7 Fixing stagger animation not getting initialized properly
Bug: 155092237
Change-Id: I65ee6bddc0bf3bda24820d4680d71bab112b670c
2020-04-27 11:11:54 -07:00
Sunny Goyal fd0f8b0d1a Fixing corner radius not properly scaled in TaskViewSimulator
Bug: 155016285
Change-Id: Ib49e79cb30fbd448f86806a98557ec27718e3499
2020-04-27 18:03:09 +00:00
TreeHugger Robot fbb6d6a73a Merge "Import translations. DO NOT MERGE" into ub-launcher3-rvc-dev 2020-04-25 21:03:52 +00:00
Bill Yi 0d3d73a402 Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Change-Id: I9fc4e7de6693ab7fee98740c1c09e92dfbd82eda
2020-04-25 03:09:04 -07:00
TreeHugger Robot e9f31eadad Merge "Don't scale workspace when going to all apps if ENABLE_OVERVIEW_ACTIONS" into ub-launcher3-rvc-dev am: 1016bf410d
Change-Id: I952644e103cbaa75f67a7c4ae56e69fb1adc8ce0
2020-04-25 06:26:13 +00:00
TreeHugger Robot 1016bf410d Merge "Don't scale workspace when going to all apps if ENABLE_OVERVIEW_ACTIONS" into ub-launcher3-rvc-dev 2020-04-25 06:21:30 +00:00