Updated paddings, margins, text and icons, renamed the main icon file
Bug: 232475559
Test: manual UI test
Change-Id: I3a70637a1330265376337f36f72fdf1c3dda25ee
Improve enter split transition by two part changes.
1. Enter split with resizing animation:
We directly show split but no animation before, it might looks
bad to user because UI change too many things in few frames.
2. Fix flicker cause by black screen when split active:
When we start intent on side stage task, the top split root task
will go to top and current top one task will be set as invisible
then cause black screen due to split root task is full screen.
Solve this by use new wct api setForceTranslucent to make split
root task as translucent when split inactive. We need to reset
it when split active otherwise it cause flicker when back to home.
Except above change, we also need to set side stage bounds to
area outside of screen otherwise it still cause flicker because it
will show a flash of shadow when launch intent on side stage.
This solution should be removed after shell transition fully
landing because in shell transition we could make those transitions
be done in one transition.
3. Fix b/243634747 caused by the previous CL. We should ensure split top
root is non-translucnet after split active by any flow.
4. Fix b/243735702 which occured on the previous CL. Because sync
transcation might apply after the animation, we could remove apply
when split active but only apply by the animator.
Fix: 223325631
Fix: 243634747
Fix: 243735702
Test: manual
Test: pass existing tests
Change-Id: Id8822aafe9eb0d6d5b0282cea256db622b9730d0
onTaskAppeared() and onTaskInfoChanged() should not update recent
tasks split pairs when shell transition enabled.
Bug: 244132711
Test: Manually check if the split pairs exist after swipe to home.
Change-Id: Ief5ae81909f6809727bf685c547e81599ff7d4ec
There are several transitions involving window decorations that are
handled by Launcher, but we still need to tie window decorations to the
lifecycle of such transitions to release window decorations at the right
time. Thus we move this part of logic into a new class.
Bug: 241975249
Test: atest FreeformTaskTransitionObserverTest
Change-Id: Iff14be6f1fcb0b8ee7f634d5d41567348fff5c06
Do not apply leash operations if we are leaving kids mode since the root task will be deleted.
Bug: 242873681
Test: 1. Select 3-button nav mode
2. enable kids mode by below command:
adb shell setting put secure nav_bar_kids_mode 1
3. Swtich to gesture nav mode to exit kids mode and no crash
Change-Id: I04cab6854a40bcae42b8c83db2e6866e4f558cca
I91d3a430 adjusts insets when calculating divider bar snap positions, to
avoid size-compat mode when switching unresizable apps. However,
limiting the adjustment to portrait mode would be enough since it's for
apps in landscape when they are latterboxed. This also helps align the
middle divider bar position with navigation bar in landscape mode.
Fix: 242918407
Test: switching split position of unresizable apps in landscape won't
show size-compat mode button
Test: divider bar position aligned with navigation bar in landscape with
the consideration of insets
Change-Id: I8722393c3f591de2b02098ec279b23c82a7daeb6
This CL prevents dragging fullscreen tasks via caption.
Bug: 243683959
Test: Attempt to drag a fullscreen task, ensure dragging non-maximized
captions is unaffected.
Change-Id: I297f2e8b6d69aba29061ae008d9d51df03ae134c
As the task of the launching activity requests attaching cross-profile
thumbnail animation but in Transication#onTransitionReady didn't be
promoted into change list, so it ends up no-op since attaching thumbnail
for cross-task requires the animating target is the task.
Fix the issue by
1) Add {FLAG_CROSS_PROFILE_OWNER_THUMBNAIL,
FLAG_CROSS_PROFILE_WORK_THUMBNAIL} in TransitionInfo.Change for shell
to know which thumbnail icon should load, according to the userId of
launching activity.
2) Remove isTask and add 1)'s change flag check in
attachCrossProfileThumbnailAnimation to make the thumbnail animation
can be played and attached on the activity-level.
Fix: 239798040
Test: as issue steps
1) Use Gmail app
2) Tap the account icon
3) Select "Switch to personal profile" (or "Switch to work profile")
4) Expect the dimmed background thumbnail icon with
task opening transition are animated in parallel
Change-Id: I90eecf4e8ba104c7234a39d1b2638295820d2ac7
animation controller
Copy most of code from RecentsAnimationController to back gesture
animation controller(BackNaviAnimationController), the infrastructure
can be reused for either back-to-home/back-to-task/back-to-activity
animations if needed. Since the infrasturcture of legacy recents
animation controller should be stable already, we don't need to
worry about issues like leak leashes/flickers/fixed rotation.
BackAnimationAdaptor is a temporary class to help migrate to shell
transition, the target is to replace it by RemoteTransition.
Next step: Migrate to shell transition, decouple animation info from
BackNavigationInfo.
Test: manually play back to home animation to verify no flicker/black
background/leak surface. Also test that there can play back to home
animation even when quick swipe.
Test: atest BackNavigationTest
Test: atest BackNavigationControllerTests BackAnimationControllerTest
Bug: 237642535
Change-Id: I436a3dcf5011c56c08d131b40168f19128cc8723
Make a copy of TaskFragmentAnimation* to ActivityEmbeddingAnimation*
to fit into Shell transition model.
Bug: 207070762
Test: atest WMShellUnitTests:ActivityEmbeddingControllerTests
Test: atest WMShellUnitTests:ActivityEmbeddingAnimationRunnerTests
Change-Id: I44118e1415f85bcd49fa77bff10c67094ec9cad5