Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
platform_frameworks_base
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dhina17
platform_frameworks_base
Commits
65c64840
Commit
65c64840
authored
1 year ago
by
Riddle Hsu
Committed by
Android (Google) Code Review
1 year ago
Browse files
Options
Downloads
Plain Diff
Merge "Run normal finish for entering standalone recents activity" into main
parents
9c97ec97
0c517c93
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libs/WindowManager/Shell/src/com/android/wm/shell/recents/RecentsTransitionHandler.java
+11
-13
11 additions, 13 deletions
...om/android/wm/shell/recents/RecentsTransitionHandler.java
with
11 additions
and
13 deletions
libs/WindowManager/Shell/src/com/android/wm/shell/recents/RecentsTransitionHandler.java
+
11
−
13
View file @
65c64840
...
...
@@ -925,19 +925,8 @@ public class RecentsTransitionHandler implements Transitions.TransitionHandler {
if
(
toHome
)
wct
.
reorder
(
mRecentsTask
,
true
/* toTop */
);
else
wct
.
restoreTransientOrder
(
mRecentsTask
);
}
if
(!
toHome
// If a recents gesture starts on the 3p launcher, then the 3p launcher is the
// live tile (pausing app). If the gesture is "cancelled" we need to return to
// 3p launcher instead of "task-switching" away from it.
&&
(!
mWillFinishToHome
||
mPausingSeparateHome
)
&&
mPausingTasks
!=
null
&&
mState
==
STATE_NORMAL
)
{
if
(
mPausingSeparateHome
)
{
ProtoLog
.
v
(
ShellProtoLogGroup
.
WM_SHELL_RECENTS_TRANSITION
,
" returning to 3p home"
);
}
else
{
ProtoLog
.
v
(
ShellProtoLogGroup
.
WM_SHELL_RECENTS_TRANSITION
,
" returning to app"
);
}
if
(!
toHome
&&
!
mWillFinishToHome
&&
mPausingTasks
!=
null
&&
mState
==
STATE_NORMAL
)
{
ProtoLog
.
v
(
ShellProtoLogGroup
.
WM_SHELL_RECENTS_TRANSITION
,
" returning to app"
);
// The gesture is returning to the pausing-task(s) rather than continuing with
// recents, so end the transition by moving the app back to the top (and also
// re-showing it's task).
...
...
@@ -969,6 +958,15 @@ public class RecentsTransitionHandler implements Transitions.TransitionHandler {
wct
.
restoreTransientOrder
(
mRecentsTask
);
}
}
else
{
if
(
mPausingSeparateHome
)
{
if
(
mOpeningTasks
.
isEmpty
())
{
ProtoLog
.
v
(
ShellProtoLogGroup
.
WM_SHELL_RECENTS_TRANSITION
,
" recents occluded 3p home"
);
}
else
{
ProtoLog
.
v
(
ShellProtoLogGroup
.
WM_SHELL_RECENTS_TRANSITION
,
" switch task by recents on 3p home"
);
}
}
ProtoLog
.
v
(
ShellProtoLogGroup
.
WM_SHELL_RECENTS_TRANSITION
,
" normal finish"
);
// The general case: committing to recents, going home, or switching tasks.
for
(
int
i
=
0
;
i
<
mOpeningTasks
.
size
();
++
i
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment