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
5000367d
Commit
5000367d
authored
7 years ago
by
Sunny Goyal
Committed by
Android (Google) Code Review
7 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Fixing missing reportDrawFinish method in windowCallbacksCompat" into pi-dev
parents
8b73c112
3eb4d642
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
packages/SystemUI/shared/src/com/android/systemui/shared/system/WindowCallbacksCompat.java
+19
-5
19 additions, 5 deletions
...android/systemui/shared/system/WindowCallbacksCompat.java
with
19 additions
and
5 deletions
packages/SystemUI/shared/src/com/android/systemui/shared/system/WindowCallbacksCompat.java
+
19
−
5
View file @
5000367d
...
...
@@ -60,6 +60,12 @@ public class WindowCallbacksCompat {
}
};
private
final
View
mView
;
public
WindowCallbacksCompat
(
View
view
)
{
mView
=
view
;
}
public
void
onWindowSizeIsChanging
(
Rect
newBounds
,
boolean
fullscreen
,
Rect
systemInsets
,
Rect
stableInsets
)
{
}
...
...
@@ -72,12 +78,20 @@ public class WindowCallbacksCompat {
return
false
;
}
public
void
onRequestDraw
(
boolean
reportNextDraw
)
{
}
public
void
onRequestDraw
(
boolean
reportNextDraw
)
{
if
(
reportNextDraw
)
{
reportDrawFinish
();
}
}
public
void
onPostDraw
(
Canvas
canvas
)
{
}
public
final
boolean
addToView
(
View
view
)
{
ViewRootImpl
root
=
view
.
getViewRootImpl
();
public
void
reportDrawFinish
()
{
mView
.
getViewRootImpl
().
reportDrawFinish
();
}
public
boolean
attach
()
{
ViewRootImpl
root
=
mView
.
getViewRootImpl
();
if
(
root
!=
null
)
{
root
.
addWindowCallbacks
(
mWindowCallbacks
);
root
.
requestInvalidateRootRenderNode
();
...
...
@@ -86,8 +100,8 @@ public class WindowCallbacksCompat {
return
false
;
}
public
final
void
removeFromView
(
View
view
)
{
ViewRootImpl
root
=
v
iew
.
getViewRootImpl
();
public
void
detach
(
)
{
ViewRootImpl
root
=
mV
iew
.
getViewRootImpl
();
if
(
root
!=
null
)
{
root
.
removeWindowCallbacks
(
mWindowCallbacks
);
}
...
...
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