Skip to content

Commit 1a34895

Browse files
committed
UNC: fixed crash during screen orientation change
BUG in native implementation of MultiSelectListPreference
1 parent b2807bf commit 1a34895

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

res/xml/led_control_settings.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
android:entries="@array/dnd_tile_em_entries"
3535
android:entryValues="@array/dnd_tile_em_values"
3636
android:defaultValue="@array/empty_array"
37-
android:persistent="false" />
37+
android:persistent="true" /> <!-- must be persistent due to BUG in Android -->
3838

3939
<CheckBoxPreference
4040
android:key="pref_lc_led_ignore_update"
@@ -48,7 +48,8 @@
4848
android:title="@string/pref_lc_led_mode_title"
4949
android:entries="@array/lc_led_mode_entries"
5050
android:entryValues="@array/lc_led_mode_values"
51-
android:defaultValue="OVERRIDE" />
51+
android:defaultValue="OVERRIDE"
52+
android:persistent="false" />
5253

5354
<net.margaritov.preference.colorpicker.ColorPickerPreference
5455
android:key="pref_lc_led_color"

0 commit comments

Comments
 (0)