Cherish:Implement click to take partial screenshot [2/2]

Change-Id: I187cb68947f6967e2993096108310648e1dc1b68
Signed-off-by: Jesse Chan <jc@lineageos.org>
Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>
This commit is contained in:
Jesse Chan
2020-05-17 22:43:17 +08:00
committed by Hưng Phan
parent eda5250616
commit e16b131e93
3 changed files with 17 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:height="24dp"
android:width="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path android:fillColor="?android:attr/colorControlNormal" android:pathData="M4,4H20A2,2 0 0,1 22,6V18A2,2 0 0,1 20,20H4A2,2 0 0,1 2,18V6A2,2 0 0,1 4,4M4,6V18H20V6H4M12,7.5C14.14,7.5 15.93,9 16.39,11H14.83C14.42,9.83 13.31,9 12,9C10.69,9 9.58,9.83 9.17,11H7.61C8.07,9 9.86,7.5 12,7.5M12,16.5C9.86,16.5 8.07,15 7.61,13H9.17C9.58,14.17 10.69,15 12,15C13.31,15 14.42,14.17 14.83,13H16.39C15.93,15 14.14,16.5 12,16.5Z" />
</vector>

View File

@@ -726,4 +726,7 @@
<string name="charging_animation_title">Charging animation</string>
<string name="charging_animation_summary">Display an animation when the device is plugged in</string>
<string name="click_partial_screenshot_title">Click to partial screenshot</string>
<string name="click_partial_screenshot_summary">Short click Volume Down and Power to take partial screenshot</string>
</resources>

View File

@@ -49,6 +49,13 @@
android:title="@string/screenshot_type_title"
android:defaultValue="0" />
<com.cherish.settings.preferences.SystemSettingSwitchPreference
android:key="click_partial_screenshot"
android:icon="@drawable/ic_partial_screenshot"
android:title="@string/click_partial_screenshot_title"
android:summary="@string/click_partial_screenshot_summary"
android:defaultValue="false" />
<Preference
android:key="vol_steps"
android:title="@string/volume_steps_fragment_title"