Skip to content

Commit

Permalink
cmsdk: Add DeviceKeyHandler overlays
Browse files Browse the repository at this point in the history
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
  • Loading branch information
zwliew committed Feb 1, 2017
1 parent fd5664d commit f142715
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
11 changes: 11 additions & 0 deletions cm/res/res/values/config.xml
@@ -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.
Expand Down Expand Up @@ -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>
5 changes: 5 additions & 0 deletions cm/res/res/values/symbols.xml
@@ -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.
Expand Down Expand Up @@ -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>

0 comments on commit f142715

Please sign in to comment.