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

Commit 8c5d4a82 authored by Roman Birg's avatar Roman Birg Committed by Steve Kondik
Browse files

framework: add config_ledCanPulse overlay setting



Some devices do not support pulsing LEDs. Allow them to hide pulse
settings.

REF: CYNGNOS-403
Change-Id: I5223d0b0db554338ed96d28028b055a47cc06ee0
Signed-off-by: default avatarRoman Birg <roman@cyngn.com>
parent 6acdaa59
Loading
Loading
Loading
Loading
+25 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
     Copyright (C) 2012-2015 The CyanogenMod Project
     Copyright (c) 2013, The Linux Foundation. All rights reserved.

     Licensed under the Apache License, Version 2.0 (the "License");
     you may not use this file except in compliance with the License.
     You may obtain a copy of the License at

          http://www.apache.org/licenses/LICENSE-2.0

     Unless required by applicable law or agreed to in writing, software
     distributed under the License is distributed on an "AS IS" BASIS,
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     See the License for the specific language governing permissions and
     limitations under the License.
-->
<resources>
    <!-- We don't want to publish private symbols in android.R as part of the
         SDK.  Instead, put them here. -->
    <private-symbols package="com.android.internal" />

    <!-- LED pulse -->
    <java-symbol type="bool" name="config_ledCanPulse" />
</resources>
+4 −0
Original line number Diff line number Diff line
@@ -942,6 +942,10 @@
         Used to decide if the user can change the colors -->
    <bool name="config_multiColorBatteryLed">false</bool>

    <!-- Do the battery/notification LEDs support pulsing?
         Used to decide if we show pulse settings -->
    <bool name="config_ledCanPulse">true</bool>

    <!-- Default value for LED off time when the battery is low on charge in miliseconds -->
    <integer name="config_notificationsBatteryLedOff">2875</integer>