diff options
| author | Mister Oyster <oysterized@gmail.com> | 2017-01-06 13:07:29 +0100 |
|---|---|---|
| committer | Mister Oyster <oysterized@gmail.com> | 2017-01-06 15:53:12 +0100 |
| commit | b49c1edd86c8860fb76dd1d24512126440afabaf (patch) | |
| tree | f145f49b85ec4f810e2478aa760d5592871071ab | |
| parent | c36cb43fd6a862df8b82e2a75c4adf4c606c61c9 (diff) | |
cmactions: fix gestures
cmactions: fix for not showing up in Settings
cmactions: missing drawable
| -rw-r--r-- | cmactions/AndroidManifest.xml | 20 | ||||
| -rw-r--r-- | cmactions/res/drawable/ic_settings_gestures.xml | 32 |
2 files changed, 42 insertions, 10 deletions
diff --git a/cmactions/AndroidManifest.xml b/cmactions/AndroidManifest.xml index 9dd3bd2..ce82a26 100644 --- a/cmactions/AndroidManifest.xml +++ b/cmactions/AndroidManifest.xml @@ -6,14 +6,15 @@ android:sharedUserId="android.uid.system" > - <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/> + <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /> <uses-sdk - android:minSdkVersion="22" /> + android:minSdkVersion="23" + android:targetSdkVersion="23" /> <application android:allowBackup="true" - android:label="CMActions" + android:label="@*cyanogenmod.platform:string/device_settings_app_name" android:persistent="true" android:icon="@mipmap/ic_launcher_settings" android:theme="@android:style/Theme.Material.Settings" > @@ -31,7 +32,6 @@ <activity android:excludeFromRecents="true" android:name="CMActions" - android:label="CMActions" android:launchMode="singleInstance" android:screenOrientation="portrait" android:windowAnimationStyle="@null"> @@ -42,16 +42,16 @@ <activity android:name=".TouchscreenGestureSettings" - android:label="@string/screen_gestures_panel_title"> + android:label="@*cyanogenmod.platform:string/screen_gestures_panel_title"> <intent-filter> - <action android:name="com.cyanogenmod.action.LAUNCH_TOUCHSCREEN_GESTURE_SETTINGS" /> + <action android:name="com.android.settings.action.EXTRA_SETTINGS" /> </intent-filter> <meta-data - android:name="com.android.settings.title" - android:resource="@string/screen_gestures_panel_title"/> + android:name="com.android.settings.category" + android:value="com.android.settings.category.device" /> <meta-data - android:name="com.android.settings.summary" - android:resource="@string/screen_gestures_panel_summary"/> + android:name="com.android.settings.icon" + android:resource="@drawable/ic_settings_gestures" /> </activity> </application> diff --git a/cmactions/res/drawable/ic_settings_gestures.xml b/cmactions/res/drawable/ic_settings_gestures.xml new file mode 100644 index 0000000..95cdede --- /dev/null +++ b/cmactions/res/drawable/ic_settings_gestures.xml @@ -0,0 +1,32 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright (c) 2015 The CyanogenMod Project + + 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. +--> +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="24dp" + android:height="24dp" + android:viewportWidth="24" + android:viewportHeight="24"> + + <path + android:fillColor="@android:color/white" + android:pathData="M4.7,6.9c0.7-0.7,1.4-1.4,1.7-1.2c0.5,0.2,0,1-0.3,1.5c-0.2,0.4-2.8,3.9-2.8,6.3c0,1.3,0.5,2.3,1.3,3 +c0.7,0.6,1.7,0.7,2.6,0.5c1.1-0.3,1.9-1.4,3-2.8c1.2-1.5,2.8-3.4,4-3.4c1.6,0,1.6,1,1.7,1.8c-3.7,0.6-5.3,3.7-5.3,5.4 +s1.4,3.1,3.2,3.1c1.6,0,4.3-1.3,4.6-6.1H21v-2.5h-2.4c-0.1-1.7-1.1-4.2-4-4.2c-2.2,0-4.1,1.9-4.9,2.8c-0.6,0.7-2,2.5-2.3,2.7 +c-0.2,0.3-0.7,0.8-1.1,0.8c-0.4,0-0.7-0.8-0.4-1.9c0.3-1.1,1.4-2.9,1.8-3.5C8.5,8,9.1,7.2,9.1,5.9C9.1,3.7,7.4,3,6.6,3 +C5.3,3,4.1,4,3.9,4.3C3.5,4.6,3.2,4.9,3,5.2L4.7,6.9z +M13.9,18.6c-0.3,0-0.7-0.3-0.7-0.7c0-0.6,0.7-2.2,2.8-2.8 +C15.8,17.8,14.6,18.6,13.9,18.6z" /> +</vector> |
