Commit Graph

33301 Commits

Author SHA1 Message Date
Lucas Dupin 0a9dc0e75b Implement scrim method
am: 904c429b99

Change-Id: Ib600307f1e9fde3a1af62521a51ac74fe0b8905b
2019-05-10 15:43:29 -07:00
Vadim Tryshev 15744052f8 Merge "TAPL: Simplifying BaseOverview" into ub-launcher3-qt-dev
am: 08ff6f586c

Change-Id: If7cb59ad66261162876f1fbe42fd5b707d9fac62
2019-05-10 15:18:30 -07:00
Kevin c1ad57b47b Merge "Add basic home to recents anim for fallback recents" into ub-launcher3-qt-dev
am: 695e8df526

Change-Id: Ic2bb7b277a754b4fccd3eb36ce4ab8fefc410826
2019-05-10 15:18:05 -07:00
Kevin 3370dad274 Merge "Fix missing early return." into ub-launcher3-qt-dev
am: 76696be287

Change-Id: I8e2c76cf42f52a0f16f996f1cf7bdb016eb77c66
2019-05-10 15:17:36 -07:00
Vadim Tryshev 08ff6f586c Merge "TAPL: Simplifying BaseOverview" into ub-launcher3-qt-dev 2019-05-10 21:45:12 +00:00
vadimt 02fb35319e TAPL: avoiding negative final coordinate of swipe-to-all apps
Change-Id: I15c2bf44b7fe2e2ac2fc85db02069441b2aeb807
2019-05-10 14:34:16 -07:00
vadimt 90b420a618 TAPL: Simplifying BaseOverview
Change-Id: I15124a95bf71be78f8e450688d83d4adbad3196f
2019-05-10 14:19:53 -07:00
TreeHugger Robot 695e8df526 Merge "Add basic home to recents anim for fallback recents" into ub-launcher3-qt-dev 2019-05-10 21:08:28 +00:00
TreeHugger Robot 76696be287 Merge "Fix missing early return." into ub-launcher3-qt-dev 2019-05-10 21:07:57 +00:00
Kevin d0863ae5c4 Add basic home to recents anim for fallback recents
For users/OEMs who ship with a different default launcher, we should
provide at least a basic animation from home to recents. This creates a
simple cross-fade animation if coming from a separate home activity.

Bug: 132449252
Test: Have different default launcher, go to home, go to recents
Change-Id: I5ac7b0eedbcdf1e020c31d9cf120887a4bb3826a
2019-05-10 13:46:23 -07:00
Kevin bd88b56e1a Merge "Refactor lambda to use listener instead" into ub-launcher3-qt-dev
am: 763a7bffa3

Change-Id: Ia9ee4b18f4e8732e81b6a2095e3349fe06fc91d5
2019-05-10 13:06:13 -07:00
Vadim Tryshev fc0fbf2b7c Merge "Tests: attempt to wait until navigation mode settles after switching" into ub-launcher3-qt-dev
am: a36ace2547

Change-Id: I54ba5ccf6ee282c838f9793f12561dd0fd5ad2d0
2019-05-10 13:05:51 -07:00
TreeHugger Robot 763a7bffa3 Merge "Refactor lambda to use listener instead" into ub-launcher3-qt-dev 2019-05-10 19:49:36 +00:00
Vadim Tryshev a36ace2547 Merge "Tests: attempt to wait until navigation mode settles after switching" into ub-launcher3-qt-dev 2019-05-10 19:44:16 +00:00
Kevin ac713d31fb Update scrim if insets are added later.
am: b35b7dee18

Change-Id: I40297278a44ee263db64f1d0f9e7bd4cf508b37e
2019-05-10 12:35:31 -07:00
Kevin 8f1ac1efeb Refactor lambda to use listener instead
We should not use an in-line lambda here as we allocate a new
RemoteAnimationProvider object to do so which hooks into the already
existing AppToOverviewAnimationProvider. This can be a problem if
AppToOverviewAnimationProvider overrides methods as we would not use the
overridden methods but instead the default ones.

Instead, we use the same AppToOverviewAnimationProvider object but hook
into the activity ready and window animation calls with a listener to
add on the logging logic.

Bug: 132112131
Test: Manual test; app to overview functions as before
Change-Id: Ie70541691ed420c33770d6ed4f54d9555374dc0a
2019-05-10 12:19:11 -07:00
Kevin b35b7dee18 Update scrim if insets are added later.
If insets are set after the activity requests the foreground scrim to be
shown, the scrim will not be correctly added. This is an issue for
fallback recents which requests the foreground scrim right after
initialization.

To fix this, we save the request to show the scrim in a local variable
and check this on inset updates to determine whether we should show the
scrim or not.

Bug: 131853975
Test: Fallback recents now has foreground scrim added correctly
Change-Id: I15a19a3184bbc97a20fbcbba2106fd7221410df0
2019-05-10 12:13:00 -07:00
vadimt 732becfd66 Tests: attempt to wait until navigation mode settles after switching
Change-Id: If2d14a062275a6cfbc81d1cb7d7ca38da302b51c
2019-05-10 12:12:44 -07:00
Kevin f0901ff2ca Merge "Set "usingRemoteAnim" for fallback recents" into ub-launcher3-qt-dev
am: 7b48548546

Change-Id: I516f8359f00afbbfd37846334156d1fba1602aa2
2019-05-10 11:47:56 -07:00
Kevin 6abf4c286d Merge "Only do content fill anim after layout anim" into ub-launcher3-qt-dev
am: 13da82576f

Change-Id: I93424f4bb500dfb8e5fb1be194a7709acdf5e55c
2019-05-10 11:47:24 -07:00
TreeHugger Robot 7b48548546 Merge "Set "usingRemoteAnim" for fallback recents" into ub-launcher3-qt-dev 2019-05-10 18:30:37 +00:00
TreeHugger Robot 13da82576f Merge "Only do content fill anim after layout anim" into ub-launcher3-qt-dev 2019-05-10 18:24:18 +00:00
Kevin 3792c733f8 Fix missing early return.
Fix a missing early return for when we don't have the bottom view laid
out on remote animation start.

Test: Builds
Change-Id: Iba0d5097ce59d017dc43030552f2171c5e6e4fb1
2019-05-10 11:19:37 -07:00
Jonathan Miranda e8deb9ce63 Merge "Initial app open/close polish using tuned values." into ub-launcher3-qt-dev
am: 57730ed095

Change-Id: I478a00fb48c4e0cef8a7086428f5afbae9b16f6a
2019-05-10 10:41:07 -07:00
Jonathan Miranda 57730ed095 Merge "Initial app open/close polish using tuned values." into ub-launcher3-qt-dev 2019-05-10 17:30:46 +00:00
Kevin 32f55bf02d Set "usingRemoteAnim" for fallback recents
Ensure fallback recents uses the correct layout animation by hooking
into usingRemoteAnim API.

Bug: 132112131
Test: Manual test
Change-Id: I9bb96dbf436018e5488ede0c5ca48af787180aec
2019-05-10 10:28:07 -07:00
Kevin 47fc4f1316 Only do content fill anim after layout anim
The new remote animation may start after the tasks are loaded and we
start the content fill animation. This means the layout happens after
and the content fill animation will conflict with the layout animation.
To fix this, we should only do the content fill animation after the
layout animation as intended. If the tasks load before we start the
layout animation, we should just directly update to the latest UI
without animating as the views won't be visible before the layout
animation starts.

Bug: 132381412
Test: Manual test
Change-Id: Ibb55d8ef4499260ffa4bef5c6bba605ffdc85da7
2019-05-10 10:18:05 -07:00
Alex Mang 1c8e1d1353 Merge "Adding query length parameter to protobuf" into ub-launcher3-qt-dev
am: 9b39df068e

Change-Id: I33d48cfa60a82464772ee5f1e4b5425572f3f8ca
2019-05-10 10:16:02 -07:00
Jon Miranda 2da1da3076 Initial app open/close polish using tuned values.
* Rect and radius now match the app window size.

Bug: 124510042
Bug: 122843905
Change-Id: Ibc85bfe1d75d01cefe00b6bf32557e04a0ee4716
2019-05-10 10:11:35 -07:00
Alex Mang 9b39df068e Merge "Adding query length parameter to protobuf" into ub-launcher3-qt-dev 2019-05-10 17:04:57 +00:00
Govinda Wasserman 9b99128350 Merge "Implements the new subscript proactive suggestions style" into ub-launcher3-qt-dev
am: c8dc2ecb4a

Change-Id: Iccf2010b768ecd25a7b4784a72cdce8d53d05d5b
2019-05-10 09:50:55 -07:00
Govinda Wasserman c8dc2ecb4a Merge "Implements the new subscript proactive suggestions style" into ub-launcher3-qt-dev 2019-05-10 16:30:04 +00:00
Govinda Wasserman ede5052227 Implements the new subscript proactive suggestions style
Change-Id: I89575a315f1468bde2a0f7894cd19b1124afa840
2019-05-10 10:40:10 -04:00
Bill Yi ff0a533676 [automerger skipped] Merge "Import translations. DO NOT MERGE" into ub-launcher3-qt-dev
am: 0f07b87420 -s ours
am skip reason: subject contains skip directive

Change-Id: I97086bc294d8cb19b8935234b4759462d882f486
2019-05-10 01:06:31 -07:00
TreeHugger Robot cf2393e056 Merge "Import translations. DO NOT MERGE" into ub-launcher3-master 2019-05-10 07:40:17 +00:00
TreeHugger Robot 0f07b87420 Merge "Import translations. DO NOT MERGE" into ub-launcher3-qt-dev 2019-05-10 07:34:58 +00:00
Bill Yi 229ecc4224 Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: Iee3e02b60f19e7230c327b7bfe324ba72195de01
2019-05-09 23:30:10 -07:00
Bill Yi 3d4ae35081 Import translations. DO NOT MERGE
Change-Id: I89b0e8ca9c0fe116df9745bf5b5b184bdec242a6
Auto-generated-cl: translation import
2019-05-09 23:28:30 -07:00
Kevin f67bccf446 Merge "Fix anim done callback not being called sometimes" into ub-launcher3-qt-dev
am: fc65c357a1

Change-Id: Ib3c7b34219cb1748379c6f6206880739d93d99f6
2019-05-09 18:45:15 -07:00
TreeHugger Robot fc65c357a1 Merge "Fix anim done callback not being called sometimes" into ub-launcher3-qt-dev 2019-05-10 01:42:47 +00:00
Kevin 78ae5ae909 Ending pending anim should set to end values.
am: f574bd5535

Change-Id: I8c3faecf1c35cea0b421370d31dc2cb66d15fcfa
2019-05-09 18:34:02 -07:00
Kevin 8ec906fc6a Move shared end pending anim logic for reusability
am: b0fcded7aa

Change-Id: Icce5133038bf2fbeec0eb78cd4f8478cc3faf447
2019-05-09 18:12:40 -07:00
Kevin b2fae14ef0 Merge changes from topic "polish-app-recents-anim" into ub-launcher3-qt-dev
am: f079b277cf

Change-Id: Id7c445cd5ba6f801fb148bafe1c4406392db944f
2019-05-09 18:12:11 -07:00
Kevin f574bd5535 Ending pending anim should set to end values.
Pending animations have not started but when ending animations, we
should ensure they are set to their end values based off the
documentation for ItemAnimator's endAnimations and endAnimation.

Bug: 132285006
Test: Build using endAnimations and manual test
Change-Id: I3039a4f192d68a0ead700cd81675b3e7b4ef51f9
2019-05-09 17:47:37 -07:00
Kevin b0fcded7aa Move shared end pending anim logic for reusability
Some of the logic in endAnimations and endAnimation is shared and should
be moved to a common helper method.

Test: Builds and functions as before
Change-Id: I4973d50ad8778bb397938b5d65d9f95f48ff145b
2019-05-09 17:40:08 -07:00
Kevin cbfa4ae7a8 Merge "Use Animator cancel instead of end" into ub-launcher3-qt-dev
am: 1350be3c21

Change-Id: Id9c598d1e23a33c02a5615a65d44c827cf825d80
2019-05-09 17:07:58 -07:00
Kevin bc96edba63 Merge "Fix fallback recents not updating list from app" into ub-launcher3-qt-dev
am: f66f6aefcc

Change-Id: I92e347865038e89ddb7e01f0cd2533da65fbd039
2019-05-09 17:07:32 -07:00
TreeHugger Robot f079b277cf Merge changes from topic "polish-app-recents-anim" into ub-launcher3-qt-dev
* changes:
  Polish app => recents animation (5/5)
  Polish app => recents animation (4/5)
  Polish app => recents animation (3/N)
  Polish app => recents animation (2/N)
  Polish app => recents animation (1/N)
2019-05-10 00:07:18 +00:00
Tony f0b2d2ecf8 Merge "Add ScreenPinnedInputConsumer" into ub-launcher3-qt-dev
am: 693c5f5287

Change-Id: I8cbceafef56338891545c32ece03a41e8ff62e6d
2019-05-09 17:06:54 -07:00
Kevin 5c0ee7ca37 Polish app => recents animation (5/5)
Add the part of the animation where task views fade in from bottom to
top. For the app animating in, we only fade in the label and the icon as
the snapshot needs to be visible as the app window scales down to it.

Bug: 132112131
Test: Manual test animation
Change-Id: Ia3fb98fde0b14fa4f72b53a1941cc2ee6b9f2294
2019-05-09 16:38:54 -07:00