aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Mortimer <sam@mortimer.me.uk>2017-10-17 23:06:29 -0700
committerDavide Garberi <dade.garberi@gmail.com>2017-12-05 12:34:09 +0100
commitbd4ad30439f7338244b72a9e05fa86c1b0f5f805 (patch)
tree11d8e3b69846cb9259e8c9977ef882d6fdaeb980
parent587856cae1863443e5668bedfe4efe4eb068fa21 (diff)
msm8996-common: overlays: Update for new LED capabilities
*) frameworks/base bool config_intrusiveBatteryLed is no longer used so it has been removed. *) Use LIGHTS_BATTERY_LIGHT capability in lineage-sdk instead. *) Update config_deviceLightCapabilities comments *) Move bool config_intrusiveNotificationLed out of Lineage-specific overlays because it's an AOSP config Change-Id: Ia813cdd0596ece07ff38e1087d9cdf9e135f20be Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
-rw-r--r--overlay-lineage/frameworks/base/core/res/res/values/config.xml6
-rw-r--r--overlay-lineage/lineage-sdk/lineage/res/res/values/config.xml10
-rw-r--r--overlay/frameworks/base/core/res/res/values/config.xml3
3 files changed, 9 insertions, 10 deletions
diff --git a/overlay-lineage/frameworks/base/core/res/res/values/config.xml b/overlay-lineage/frameworks/base/core/res/res/values/config.xml
index 79019d1..b9bb0c3 100644
--- a/overlay-lineage/frameworks/base/core/res/res/values/config.xml
+++ b/overlay-lineage/frameworks/base/core/res/res/values/config.xml
@@ -17,12 +17,6 @@
<!-- These resources are around just to allow their values to be customized
for different hardware and product builds. Do not translate. -->
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
- <!-- Is the notification LED intrusive? Used to decide if there should be a disable option -->
- <bool name="config_intrusiveNotificationLed">true</bool>
-
- <!-- Is the battery LED intrusive? Used to decide if there should be a disable option -->
- <bool name="config_intrusiveBatteryLed">true</bool>
-
<!-- Control the behavior when the user long presses the app switch button.
0 - Nothing
1 - Menu key
diff --git a/overlay-lineage/lineage-sdk/lineage/res/res/values/config.xml b/overlay-lineage/lineage-sdk/lineage/res/res/values/config.xml
index a63534e..55fd1ed 100644
--- a/overlay-lineage/lineage-sdk/lineage/res/res/values/config.xml
+++ b/overlay-lineage/lineage-sdk/lineage/res/res/values/config.xml
@@ -26,12 +26,14 @@
LIGHTS_RGB_NOTIFICATION_LED = 1
LIGHTS_RGB_BATTERY_LED = 2
- LIGHTS_MULTIPLE_NOTIFICATION_LED = 4
+ LIGHTS_MULTIPLE_NOTIFICATION_LED = 4 (deprecated)
LIGHTS_PULSATING_LED = 8
LIGHTS_SEGMENTED_BATTERY_LED = 16
LIGHTS_ADJUSTABLE_NOTIFICATION_LED_BRIGHTNESS = 32
+ LIGHTS_BATTERY_LED = 64
- For example, a device support pulsating, RGB notification and
- battery LEDs would set this config to 11. -->
- <integer name="config_deviceLightCapabilities">43</integer>
+ For example, a device with notification and battery lights
+ that support pulsating and RGB control would set this config
+ to 75. -->
+ <integer name="config_deviceLightCapabilities">107</integer>
</resources>
diff --git a/overlay/frameworks/base/core/res/res/values/config.xml b/overlay/frameworks/base/core/res/res/values/config.xml
index 9d7f630..bf8dfe1 100644
--- a/overlay/frameworks/base/core/res/res/values/config.xml
+++ b/overlay/frameworks/base/core/res/res/values/config.xml
@@ -97,6 +97,9 @@
<!-- If this is true, the screen will come on when you unplug usb/power/whatever. -->
<bool name="config_unplugTurnsOnScreen">true</bool>
+ <!-- Is the notification LED intrusive? Used to decide if there should be a disable option -->
+ <bool name="config_intrusiveNotificationLed">true</bool>
+
<!-- Boolean indicating if restoring network selection should be skipped -->
<!-- The restoring is handled by modem if it is true-->
<bool translatable="false" name="skip_restoring_network_selection">true</bool>