lineageaction: update snd improve lineageaction
Signed-off-by: ronaxdevil <pratabidya.007@gmail.com>
This commit is contained in:
@@ -80,6 +80,9 @@
|
|||||||
<meta-data
|
<meta-data
|
||||||
android:name="com.android.settings.category"
|
android:name="com.android.settings.category"
|
||||||
android:value="com.android.settings.category.ia.homepage" />
|
android:value="com.android.settings.category.ia.homepage" />
|
||||||
|
<meta-data
|
||||||
|
android:name="com.android.settings.bg.hint"
|
||||||
|
android:resource="@color/homepage_moto_background" />
|
||||||
<meta-data
|
<meta-data
|
||||||
android:name="com.android.settings.icon"
|
android:name="com.android.settings.icon"
|
||||||
android:resource="@drawable/ic_settings_gestures_dashboard" />
|
android:resource="@drawable/ic_settings_gestures_dashboard" />
|
||||||
|
|||||||
@@ -15,15 +15,16 @@
|
|||||||
limitations under the License.
|
limitations under the License.
|
||||||
-->
|
-->
|
||||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
android:width="24dp"
|
android:width="24.0dp"
|
||||||
android:height="24dp"
|
android:height="24.0dp"
|
||||||
android:viewportWidth="32.0"
|
android:viewportWidth="24.0"
|
||||||
android:viewportHeight="32.0"
|
android:viewportHeight="24.0">
|
||||||
android:tint="?android:attr/colorControlNormal">
|
|
||||||
<path
|
<path
|
||||||
android:fillColor="#FF000000"
|
android:fillColor="#FEFFFFFF"
|
||||||
android:pathData="M20,20.2V24H6V5.3h8.7l2.4,-4H7.6c-2.2,0 -4,1.8 -4,4v21.3c0,2.2 1.8,4 4,4h10.7c2.2,0 4,-1.8 4,-4V14.9L20,20.2zM15.6,28h-5.3v-1.3h5.3V28z"/>
|
android:strokeColor="#FFFEFEFE"
|
||||||
<path
|
android:strokeWidth="0.24"
|
||||||
android:fillColor="#FF000000"
|
android:strokeLineJoin="round"
|
||||||
android:pathData="M28.5,7l1.1,-2.4L32,3.5l-2.4,-1.1L28.5,0l-1.1,2.4L25,3.5l2.4,1.1L28.5,7zM21,7.4l-2.2,-4.8l-2.2,4.8l-4.8,2.2l4.8,2.2l2.2,4.8l2.2,-4.8l4.8,-2.2L21,7.4zM28.5,12.2l-1.1,2.4L25,15.6l2.4,1.1l1.1,2.4l1.1,-2.4l2.4,-1.1l-2.4,-1.1L28.5,12.2z"/>
|
android:fillType="nonZero"
|
||||||
|
android:strokeLineCap="round"
|
||||||
|
android:pathData="M22.15,21.18C21.87,20.11,18.07,5.50,12.04,18.85C6.01,5.50,2.14,20.12,1.80,21.18L0.79,21.18L6.98,0.55M7.05,0.66L12.04,17.08L15.28,6.41L17.11,0.55L21.61,15.13L23.33,21.18L22.15,21.18"/>
|
||||||
</vector>
|
</vector>
|
||||||
|
|||||||
19
LineageActions/res/values/colors.xml
Normal file
19
LineageActions/res/values/colors.xml
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!-- Copyright (C) 2018 The Xiaomi-SDM660 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.-->
|
||||||
|
<resources>
|
||||||
|
<color name="homepage_moto_background">#06A097</color>
|
||||||
|
</resources>
|
||||||
@@ -890,6 +890,7 @@ public class KeyHandler implements DeviceKeyHandler {
|
|||||||
owningUid = android.os.Process.myUid();
|
owningUid = android.os.Process.myUid();
|
||||||
owningPackage = mContext.getOpPackageName();
|
owningPackage = mContext.getOpPackageName();
|
||||||
VibrationEffect effect = VibrationEffect.createOneShot(longpress ? 50 : 40, VibrationEffect.DEFAULT_AMPLITUDE);
|
VibrationEffect effect = VibrationEffect.createOneShot(longpress ? 50 : 40, VibrationEffect.DEFAULT_AMPLITUDE);
|
||||||
|
mVibrator.vibrate(owningUid, owningPackage, effect, null, VIBRATION_ATTRIBUTES);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user