Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 970564e2 authored by Matthew Duggan's avatar Matthew Duggan Committed by Automerger Merge Worker
Browse files

Merge "Allow separate configuration of display color fade" into udc-qpr-dev am: 7d9ba800

parents 4eeb0fde 7d9ba800
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -2694,6 +2694,9 @@
         backlight values -->
         backlight values -->
    <bool name="config_displayBrightnessBucketsInDoze">false</bool>
    <bool name="config_displayBrightnessBucketsInDoze">false</bool>


    <!-- True to skip the fade animation on display off event -->
    <bool name="config_displayColorFadeDisabled">false</bool>

    <!-- Power Management: Specifies whether to decouple the auto-suspend state of the
    <!-- Power Management: Specifies whether to decouple the auto-suspend state of the
         device from the display on/off state.
         device from the display on/off state.


+1 −0
Original line number Original line Diff line number Diff line
@@ -3856,6 +3856,7 @@
  <java-symbol type="bool" name="config_dozeSupportsAodWallpaper" />
  <java-symbol type="bool" name="config_dozeSupportsAodWallpaper" />
  <java-symbol type="bool" name="config_displayBlanksAfterDoze" />
  <java-symbol type="bool" name="config_displayBlanksAfterDoze" />
  <java-symbol type="bool" name="config_displayBrightnessBucketsInDoze" />
  <java-symbol type="bool" name="config_displayBrightnessBucketsInDoze" />
  <java-symbol type="bool" name="config_displayColorFadeDisabled" />
  <java-symbol type="integer" name="config_storageManagerDaystoRetainDefault" />
  <java-symbol type="integer" name="config_storageManagerDaystoRetainDefault" />
  <java-symbol type="string" name="config_headlineFontFamily" />
  <java-symbol type="string" name="config_headlineFontFamily" />
  <java-symbol type="string" name="config_headlineFontFamilyMedium" />
  <java-symbol type="string" name="config_headlineFontFamilyMedium" />
+3 −1
Original line number Original line Diff line number Diff line
@@ -724,7 +724,9 @@ final class DisplayPowerController implements AutomaticBrightnessController.Call


        setUpAutoBrightness(resources, handler);
        setUpAutoBrightness(resources, handler);


        mColorFadeEnabled = !ActivityManager.isLowRamDeviceStatic();
        mColorFadeEnabled = !ActivityManager.isLowRamDeviceStatic()
                && !resources.getBoolean(
                  com.android.internal.R.bool.config_displayColorFadeDisabled);
        mColorFadeFadesConfig = resources.getBoolean(
        mColorFadeFadesConfig = resources.getBoolean(
                com.android.internal.R.bool.config_animateScreenLights);
                com.android.internal.R.bool.config_animateScreenLights);


+3 −1
Original line number Original line Diff line number Diff line
@@ -611,7 +611,9 @@ final class DisplayPowerController2 implements AutomaticBrightnessController.Cal


        setUpAutoBrightness(resources, handler);
        setUpAutoBrightness(resources, handler);


        mColorFadeEnabled = mInjector.isColorFadeEnabled();
        mColorFadeEnabled = mInjector.isColorFadeEnabled()
                && !resources.getBoolean(
                  com.android.internal.R.bool.config_displayColorFadeDisabled);
        mColorFadeFadesConfig = resources.getBoolean(
        mColorFadeFadesConfig = resources.getBoolean(
                R.bool.config_animateScreenLights);
                R.bool.config_animateScreenLights);