Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
platform_frameworks_base-old
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
Farzin Kazemzadeh
platform_frameworks_base-old
Commits
4af5694e
Commit
4af5694e
authored
1 year ago
by
Riddle Hsu
Committed by
Android (Google) Code Review
1 year ago
Browse files
Options
Downloads
Plain Diff
Merge "Avoid invisible PiP handling input events" into udc-dev
parents
b33119d3
7bdba320
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/pip/PipTransition.java
+19
-1
19 additions, 1 deletion
...ger/Shell/src/com/android/wm/shell/pip/PipTransition.java
with
19 additions
and
1 deletion
libs/WindowManager/Shell/src/com/android/wm/shell/pip/PipTransition.java
+
19
−
1
View file @
4af5694e
...
...
@@ -1079,10 +1079,28 @@ public class PipTransition extends PipTransitionController {
}
final
float
alphaStart
=
show
?
0
:
1
;
final
float
alphaEnd
=
show
?
1
:
0
;
final
PipAnimationController
.
PipTransactionHandler
transactionHandler
=
new
PipAnimationController
.
PipTransactionHandler
()
{
@Override
public
boolean
handlePipTransaction
(
SurfaceControl
leash
,
SurfaceControl
.
Transaction
tx
,
Rect
destinationBounds
,
float
alpha
)
{
if
(
alpha
==
0
)
{
if
(
show
)
{
tx
.
setPosition
(
leash
,
destinationBounds
.
left
,
destinationBounds
.
top
);
}
else
{
// Put PiP out of the display so it won't block touch when it is hidden.
final
Rect
displayBounds
=
mPipDisplayLayoutState
.
getDisplayBounds
();
final
int
max
=
Math
.
max
(
displayBounds
.
width
(),
displayBounds
.
height
());
tx
.
setPosition
(
leash
,
max
,
max
);
}
}
return
false
;
}
};
mPipAnimationController
.
getAnimator
(
taskInfo
,
leash
,
mPipBoundsState
.
getBounds
(),
alphaStart
,
alphaEnd
)
.
setTransitionDirection
(
TRANSITION_DIRECTION_SAME
)
.
setPip
AnimationCallback
(
mPipAnimationCallback
)
.
setPip
TransactionHandler
(
transactionHandler
)
.
setDuration
(
mEnterExitAnimationDuration
)
.
start
();
mHasFadeOut
=
!
show
;
...
...
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