Grey 'LED blink pattern' when LED Color is None

Add BooleanListPreference to allow pref_led_blink to depend on
pref_led_color being non-None.

Closes #6480
This commit is contained in:
Taylor Kline
2017-04-02 22:20:03 -05:00
committed by Moxie Marlinspike
parent b0b1cdef35
commit 04153a3869
2 changed files with 60 additions and 2 deletions

View File

@@ -19,7 +19,7 @@
android:title="@string/preferences__vibrate"
android:summary="@string/preferences__also_vibrate_when_notified" />
<ListPreference
<org.thoughtcrime.securesms.preferences.BooleanListPreference
android:key="pref_led_color"
android:defaultValue="blue"
android:title="@string/preferences__led_color"
@@ -31,7 +31,7 @@
android:key="pref_led_blink"
android:defaultValue="500,2000"
android:title="@string/preferences__pref_led_blink_title"
android:dependency="pref_key_enable_notifications"
android:dependency="pref_led_color"
android:entries="@array/pref_led_blink_pattern_entries"
android:entryValues="@array/pref_led_blink_pattern_values" />