Enable smart dark

Bug: 116860870
Test: builds, smart dark applies for targetSdk >= Q && night mode is
enabled
Change-Id: I66e4ec4ad3e5c886c5260137fd48e2c92ee59552
This commit is contained in:
John Reck 2018-10-25 15:25:51 -07:00
parent bef47d02d5
commit 5711911bd3

View File

@ -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);