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

Commit 6ef1b590 authored by Will's avatar Will
Browse files

Add a config for "wake screen on notifications".

This config value controls whether the "wake screen on notifications"
setting and functionality are available on a given device. By default
the value is "true", which means that there will be no change to any
current functionality.

Test: manually by checking that the "wake screen on notifications"
setting is still present in Settings, and the screen does wake up when a
notification arrives and this setting is enabled.
Bug: 231246919

Change-Id: I37f09fd3bcb820cbfa763bc8aa942924683cf9fb
parent 343260ad
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -89,7 +89,8 @@ public class AmbientDisplayConfiguration {

    /** @hide */
    public boolean pulseOnNotificationAvailable() {
        return ambientDisplayAvailable();
        return mContext.getResources().getBoolean(R.bool.config_pulseOnNotificationsAvailable)
                && ambientDisplayAvailable();
    }

    /** @hide */
+3 −0
Original line number Diff line number Diff line
@@ -5824,4 +5824,7 @@
    <string-array name="config_serviceStateLocationAllowedPackages">
        <item>"com.android.phone"</item>
    </string-array>

    <!-- Whether the wake screen on notifications feature is available. -->
    <bool name="config_pulseOnNotificationsAvailable">true</bool>
</resources>
+1 −0
Original line number Diff line number Diff line
@@ -3337,6 +3337,7 @@
  <java-symbol type="string" name="config_dozeTapSensorType" />
  <java-symbol type="array" name="config_dozeTapSensorPostureMapping" />
  <java-symbol type="bool" name="config_dozePulsePickup" />
  <java-symbol type="bool" name="config_pulseOnNotificationsAvailable" />

  <!-- Used for MimeIconUtils. -->
  <java-symbol type="drawable" name="ic_doc_apk" />