[SQUASHED]Screen Off Animation config & make screen off animation selection logical[2/2]

Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>
This commit is contained in:
maxwen
2018-09-13 00:51:16 +05:30
committed by Hưng Phan
parent 98df05de35
commit 2fca3a9d03
4 changed files with 45 additions and 0 deletions

View File

@@ -554,4 +554,19 @@
<item>2</item>
<item>3</item>
</string-array>
<!-- Screen off animation -->
<string-array name="screen_off_animation_entries">
<item>@string/screen_off_animation_fade</item>
<item>@string/screen_off_animation_color</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>
<item>3</item>
</string-array>
</resources>

View File

@@ -616,4 +616,11 @@
<!-- Force disable transition animation -->
<string name="disable_transition_animations_title">Disable transition animations</string>
<string name="disable_transition_animations_summary">Force disable all transition animations</string>
<!-- Screen off animation -->
<string name="screen_off_animation_fade">Simple fade</string>
<string name="screen_off_animation_color">Color fade</string>
<string name="screen_off_animation_crt">CRT</string>
<string name="screen_off_animation_scale">Scale</string>
<string name="screen_off_animation_title">Screen off animation</string>
</resources>

View File

@@ -114,4 +114,12 @@
android:entries="@array/listview_interpolator_entries"
android:entryValues="@array/listview_interpolator_values"
android:defaultValue="0" />
<ListPreference
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:persistent="false"
android:defaultValue="0" />
</PreferenceScreen>