Cherish: Screen off animations [2/2]

Change-Id: Idcba49c5e8389314412457269f9b2577469d29d2
Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>
This commit is contained in:
bigrushdog
2022-02-19 23:28:19 +02:00
committed by Hưng Phan
parent 4720f3c724
commit 7db326c976
3 changed files with 26 additions and 0 deletions

View File

@@ -468,4 +468,17 @@
<item>@string/action_value_select_app</item>
</string-array>
<!-- Screen off animation -->
<string-array name="screen_off_animation_entries">
<item>@string/default_string</item>
<item>@string/screen_off_animation_crt</item>
<item>@string/screen_off_animation_scale</item>
</string-array>
<string-array name="screen_off_animation_values" translatable="false">
<item>0</item>
<item>1</item>
<item>2</item>
</string-array>
</resources>

View File

@@ -599,5 +599,10 @@
<!-- Hardware keys -->
<string name="hardware_keys_category">Hardware navigation buttons</string>
<string name="hardware_keys_disable_title">Disable hardware buttons</string>
<!-- Screen off animation -->
<string name="screen_off_animation_title">Screen off animation</string>
<string name="screen_off_animation_crt">CRT</string>
<string name="screen_off_animation_scale">Scale</string>
</resources>

View File

@@ -45,4 +45,12 @@
android:entryValues="@array/qs_tile_animation_interpolator_values"
android:persistent="false" />
</PreferenceCategory>
<com.cherish.settings.preferences.SystemSettingListPreference
android:key="screen_off_animation"
android:title="@string/screen_off_animation_title"
android:entries="@array/screen_off_animation_entries"
android:entryValues="@array/screen_off_animation_values"
android:summary="%s"
android:defaultValue="0" />
</PreferenceScreen>