cmsdk: Add DeviceKeyHandler overlays
As per change Iaaab737f1501a97d7016d8d519ccf127ca059218 in fw/b, we're now allowing devices to specify an array of DeviceKeyHandlers. Add the appropriate array overlay for this. Also, specify CMParts as a DeviceKeyHandler, since almost all devices with touchscreen gestures will have to use it. The only exceptions are the devices which register touchscreen gestures through the SensorManager. Change-Id: Ie8e4901712d03ce4b2d799cf0ee5fc2e1bad6aae
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (C) 2015 The CyanogenMod Project
|
||||
2017 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.
|
||||
@@ -130,4 +131,14 @@
|
||||
|
||||
<!-- The CMSystemServer class that is invoked from Android's SystemServer -->
|
||||
<string name="config_externalSystemServer" translatable="false">org.cyanogenmod.platform.internal.CMSystemServer</string>
|
||||
|
||||
<!-- Paths to the libraries that contain device specific key handlers -->
|
||||
<string-array name="config_deviceKeyHandlerLibs" translatable="false">
|
||||
<item>/system/priv-app/CMParts/CMParts.apk</item>
|
||||
</string-array>
|
||||
|
||||
<!-- Names of the key handler classes -->
|
||||
<string-array name="config_deviceKeyHandlerClasses" translatable="false">
|
||||
<item>org.cyanogenmod.cmparts.gestures.KeyHandler</item>
|
||||
</string-array>
|
||||
</resources>
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (C) 2015 The CyanogenMod Project
|
||||
2017 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.
|
||||
@@ -123,4 +124,8 @@
|
||||
|
||||
<!-- Settings -->
|
||||
<java-symbol type="string" name="privacy_guard_manager_title" />
|
||||
|
||||
<!-- Device keyhandlers -->
|
||||
<java-symbol type="array" name="config_deviceKeyHandlerLibs" />
|
||||
<java-symbol type="array" name="config_deviceKeyHandlerClasses" />
|
||||
</resources>
|
||||
|
||||
Reference in New Issue
Block a user