Display button action settings as disabled when feature disabled
Signed-off-by: mueller-ma <mueller-ma@users.noreply.github.com>
This commit is contained in:
parent
a10fc8ad4e
commit
78494f3155
|
@ -49,12 +49,14 @@
|
||||||
|
|
||||||
<CheckBoxPreference
|
<CheckBoxPreference
|
||||||
android:defaultValue="false"
|
android:defaultValue="false"
|
||||||
|
android:dependency="mi2_enable_button_action"
|
||||||
android:key="mi2_button_action_vibrate"
|
android:key="mi2_button_action_vibrate"
|
||||||
android:summary="@string/mi2_prefs_button_action_vibrate_summary"
|
android:summary="@string/mi2_prefs_button_action_vibrate_summary"
|
||||||
android:title="@string/mi2_prefs_button_action_vibrate" />
|
android:title="@string/mi2_prefs_button_action_vibrate" />
|
||||||
|
|
||||||
<EditTextPreference
|
<EditTextPreference
|
||||||
android:defaultValue="6"
|
android:defaultValue="6"
|
||||||
|
android:dependency="mi2_enable_button_action"
|
||||||
android:inputType="number"
|
android:inputType="number"
|
||||||
android:key="mi_button_press_count"
|
android:key="mi_button_press_count"
|
||||||
android:summary="@string/mi2_prefs_button_press_count_summary"
|
android:summary="@string/mi2_prefs_button_press_count_summary"
|
||||||
|
@ -62,12 +64,14 @@
|
||||||
|
|
||||||
<EditTextPreference
|
<EditTextPreference
|
||||||
android:defaultValue="@string/mi2_prefs_button_press_broadcast_default_value"
|
android:defaultValue="@string/mi2_prefs_button_press_broadcast_default_value"
|
||||||
|
android:dependency="mi2_enable_button_action"
|
||||||
android:key="mi_button_press_broadcast"
|
android:key="mi_button_press_broadcast"
|
||||||
android:summary="@string/mi2_prefs_button_press_broadcast_summary"
|
android:summary="@string/mi2_prefs_button_press_broadcast_summary"
|
||||||
android:title="@string/mi2_prefs_button_press_broadcast" />
|
android:title="@string/mi2_prefs_button_press_broadcast" />
|
||||||
|
|
||||||
<EditTextPreference
|
<EditTextPreference
|
||||||
android:defaultValue="2000"
|
android:defaultValue="2000"
|
||||||
|
android:dependency="mi2_enable_button_action"
|
||||||
android:inputType="number"
|
android:inputType="number"
|
||||||
android:key="mi_button_press_count_max_delay"
|
android:key="mi_button_press_count_max_delay"
|
||||||
android:summary="@string/mi2_prefs_button_press_count_max_delay_summary"
|
android:summary="@string/mi2_prefs_button_press_count_max_delay_summary"
|
||||||
|
@ -75,6 +79,7 @@
|
||||||
|
|
||||||
<EditTextPreference
|
<EditTextPreference
|
||||||
android:defaultValue="0"
|
android:defaultValue="0"
|
||||||
|
android:dependency="mi2_enable_button_action"
|
||||||
android:inputType="number"
|
android:inputType="number"
|
||||||
android:key="mi_button_press_count_match_delay"
|
android:key="mi_button_press_count_match_delay"
|
||||||
android:summary="@string/mi2_prefs_button_press_count_match_delay_summary"
|
android:summary="@string/mi2_prefs_button_press_count_match_delay_summary"
|
||||||
|
|
Loading…
Reference in New Issue