UDFPS Settings: beautifications

Move all UDFPS Settings to separate menu for ease of removal
for non-udfps devices

Signed-off-by: SuperDroidBond <superdroidbond@yahoo.com>
Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>
This commit is contained in:
SuperDroidBond
2022-01-06 20:55:58 +05:30
committed by Hưng Phan
parent 72f3241d7d
commit 35e75fc2d6
5 changed files with 134 additions and 28 deletions

View File

@@ -476,6 +476,10 @@
<string name="udfps_icon_picker_title">Udfps icon picker</string>
<string name="udfps_icon_picker_summary">Choose your favorite fingerprint icon</string>
<!-- Udfps Custom Options -->
<string name="udfps_settings_title">Udfps Options</string>
<string name="udfps_settings_summary">Different menus for customizing the udfps</string>
<!-- Udfps Haptic Feedback -->
<string name="udfps_haptic_feedback_title">FOD haptic feedback</string>
<string name="udfps_haptic_feedback_summary">Vibrate when touching FOD icon</string>

View File

@@ -88,30 +88,12 @@
<PreferenceCategory
android:key="udfps_category"
android:title="@string/udfps_category">
<com.cherish.settings.preferences.SystemSettingSwitchPreference
android:key="udfps_haptic_feedback"
android:title="@string/udfps_haptic_feedback_title"
android:summary="@string/udfps_haptic_feedback_summary"
android:defaultValue="true" />
<com.cherish.settings.preferences.SystemSettingSwitchPreference
android:key="screen_off_fod"
android:title="@string/screen_off_fod_title"
android:summary="@string/screen_off_fod_summary"
android:defaultValue="true" />
<Preference
android:key="udfps_icon_picker"
android:title="@string/udfps_icon_picker_title"
android:summary="@string/udfps_icon_picker_summary"
android:fragment="com.cherish.settings.fragments.UdfpsIconPicker" />
<Preference
android:key="udfps_recognizing_animation_preview"
android:title="@string/udfps_recog_animation_effect_title"
android:summary="@string/udfps_recog_animation_effect_summary"
android:fragment="com.cherish.settings.fragments.UdfpsAnimation"/>
android:key="udfps_settings"
android:title="@string/udfps_settings_title"
android:summary="@string/udfps_settings_summary"
android:fragment="com.cherish.settings.fragments.UdfpsSettings" />
</PreferenceCategory>
</PreferenceScreen>

View File

@@ -0,0 +1,48 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2020-22 The CherishOS Projects
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.
-->
<PreferenceScreen
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:settings="http://schemas.android.com/apk/res/com.android.settings"
android:title="@string/udfps_category">
<com.cherish.settings.preferences.SystemSettingSwitchPreference
android:key="udfps_haptic_feedback"
android:title="@string/udfps_haptic_feedback_title"
android:summary="@string/udfps_haptic_feedback_summary"
android:defaultValue="true" />
<com.cherish.settings.preferences.SystemSettingSwitchPreference
android:key="screen_off_fod"
android:title="@string/screen_off_fod_title"
android:summary="@string/screen_off_fod_summary"
android:defaultValue="true" />
<PreferenceCategory
android:key="udfps_customization"
android:title="UDFPS Customization">
<Preference
android:key="udfps_icon_picker"
android:title="@string/udfps_icon_picker_title"
android:summary="@string/udfps_icon_picker_summary"
android:fragment="com.cherish.settings.fragments.UdfpsIconPicker" />
<Preference
android:key="udfps_recognizing_animation_preview"
android:title="@string/udfps_recog_animation_effect_title"
android:summary="@string/udfps_recog_animation_effect_summary"
android:fragment="com.cherish.settings.fragments.UdfpsAnimation"/>
</PreferenceCategory>
</PreferenceScreen>