lineage-sdk: Add config to define camera key type

* To be used for buttons settings

Change-Id: I11ef0333bd98953ce10381d0e338bd25142ca5d8
This commit is contained in:
Bruno Martins
2018-01-12 00:24:12 +00:00
parent 5bcd8016d2
commit 7ec01f6171
2 changed files with 9 additions and 2 deletions

View File

@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2015 The CyanogenMod Project
2017 The LineageOS Project
2017-2018 The LineageOS Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -232,4 +232,8 @@
sdk/src/java/org/lineageos/internal/util/DeviceKeysConstants.java.
-->
<integer name="config_longPressOnAppSwitchBehavior">9</integer>
<!-- Indicates that the device has Single-stage Camera key
(without "Focus" state) instead of Dual-stage. -->
<bool name="config_singleStageCameraKey">false</bool>
</resources>

View File

@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2015 The CyanogenMod Project
2017 The LineageOS Project
2017-2018 The LineageOS Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -126,6 +126,9 @@
<java-symbol type="integer" name="config_longPressOnMenuBehavior" />
<java-symbol type="integer" name="config_longPressOnAppSwitchBehavior" />
<!-- Camera key type -->
<java-symbol type="bool" name="config_singleStageCameraKey" />
<!-- BurnIn protection -->
<java-symbol type="bool" name="config_enableBurnInProtection" />