Cherish: Bring back UDFPS icons and Animations [2/3]

Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>
This commit is contained in:
SagarMakhar
2022-04-03 15:14:02 +03:00
committed by Hưng Phan
parent 1eb8840e57
commit a686f8748f
5 changed files with 505 additions and 1 deletions

View File

@@ -494,7 +494,18 @@
<!-- UDFPS Haptic Feedback -->
<string name="udfps_haptic_feedback_title">UDFPS haptic feedback</string>
<string name="udfps_haptic_feedback_summary">Vibrate when touching UDFPS icon</string>
<!-- UDFPS Recog Animation -->
<string name="udfps_customization">UDFPS customization</string>
<string name="udfps_recog_animation">UDFPS animation</string>
<string name="udfps_recog_animation_summary">Shows an animation while reading your finger</string>
<string name="udfps_recog_animation_effect_title">UDFPS custom animation</string>
<string name="udfps_recog_animation_effect_summary">Choose animation effect</string>
<string name="udfps_settings_title">UDFPS settings</string>
<string name="udfps_settings_summary">Customizations for the UDFPS</string>
<string name="udfps_settings_summary">Settings for customizing the UDFPS</string>
<!-- UDFPS icon picker -->
<string name="udfps_icon_picker_title">UDFPS icon picker</string>
<string name="udfps_icon_picker_summary">Choose your favorite fingerprint icon</string>
</resources>

View File

@@ -14,4 +14,22 @@
android:summary="@string/udfps_haptic_feedback_summary"
android:defaultValue="true" />
<PreferenceCategory
android:key="udfps_customization"
android:title="@string/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>