summaryrefslogtreecommitdiff
path: root/libs/hwui/Properties.cpp
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2018-10-25 15:25:51 -0700
committerJohn Reck <jreck@google.com>2018-10-25 15:25:51 -0700
commit5711911bd3bf6f8074dd01a86d94a5873ec1d344 (patch)
tree229a569d11ce919353a029eff01d94807df036e1 /libs/hwui/Properties.cpp
parentbef47d02d5ccf0238173027e6830b3f1bf05f0df (diff)
Enable smart dark
Bug: 116860870 Test: builds, smart dark applies for targetSdk >= Q && night mode is enabled Change-Id: I66e4ec4ad3e5c886c5260137fd48e2c92ee59552
Diffstat (limited to 'libs/hwui/Properties.cpp')
-rw-r--r--libs/hwui/Properties.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/libs/hwui/Properties.cpp b/libs/hwui/Properties.cpp
index a699e2f7195b..3f2c616eb8ff 100644
--- a/libs/hwui/Properties.cpp
+++ b/libs/hwui/Properties.cpp
@@ -61,7 +61,7 @@ bool Properties::filterOutTestOverhead = false;
bool Properties::disableVsync = false;
bool Properties::skpCaptureEnabled = false;
bool Properties::forceDarkMode = false;
-bool Properties::enableForceDarkSupport = false;
+bool Properties::enableForceDarkSupport = true;
bool Properties::enableRTAnimations = true;
bool Properties::runningInEmulator = false;
@@ -150,8 +150,7 @@ bool Properties::load() {
forceDarkMode = property_get_bool(PROPERTY_FORCE_DARK, false);
- // TODO: make this on by default
- enableForceDarkSupport = property_get_bool(PROPERTY_ENABLE_FORCE_DARK, false);
+ enableForceDarkSupport = property_get_bool(PROPERTY_ENABLE_FORCE_DARK, true);
return (prevDebugLayersUpdates != debugLayersUpdates) || (prevDebugOverdraw != debugOverdraw) ||
(prevDebugStencilClip != debugStencilClip);