Donate to
e Foundation
|
Murena
handsets with /e/OS | Own a part of Murena!
Learn more
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
android_frameworks_base
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository 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
e
os
android_frameworks_base
Commits
f2c8370d
Commit
f2c8370d
authored
5 years ago
by
TreeHugger Robot
Committed by
Android (Google) Code Review
5 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Update display color mode before white balance" into qt-r1-dev
parents
55fe6539
2c2e4a89
Branches
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
services/core/java/com/android/server/display/color/ColorDisplayService.java
+7
-3
7 additions, 3 deletions
...com/android/server/display/color/ColorDisplayService.java
with
7 additions
and
3 deletions
services/core/java/com/android/server/display/color/ColorDisplayService.java
+
7
−
3
View file @
f2c8370d
...
@@ -465,12 +465,16 @@ public final class ColorDisplayService extends SystemService {
...
@@ -465,12 +465,16 @@ public final class ColorDisplayService extends SystemService {
.
setMatrix
(
mNightDisplayTintController
.
getColorTemperatureSetting
());
.
setMatrix
(
mNightDisplayTintController
.
getColorTemperatureSetting
());
}
}
// dtm.setColorMode() needs to be called before
// updateDisplayWhiteBalanceStatus(), this is because the latter calls
// DisplayTransformManager.needsLinearColorMatrix(), therefore it is dependent
// on the state of DisplayTransformManager.
final
DisplayTransformManager
dtm
=
getLocalService
(
DisplayTransformManager
.
class
);
dtm
.
setColorMode
(
mode
,
mNightDisplayTintController
.
getMatrix
());
if
(
mDisplayWhiteBalanceTintController
.
isAvailable
(
getContext
()))
{
if
(
mDisplayWhiteBalanceTintController
.
isAvailable
(
getContext
()))
{
updateDisplayWhiteBalanceStatus
();
updateDisplayWhiteBalanceStatus
();
}
}
final
DisplayTransformManager
dtm
=
getLocalService
(
DisplayTransformManager
.
class
);
dtm
.
setColorMode
(
mode
,
mNightDisplayTintController
.
getMatrix
());
}
}
private
void
onAccessibilityActivated
()
{
private
void
onAccessibilityActivated
()
{
...
...
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