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:
mueller-ma 2017-09-12 19:05:44 +02:00 committed by Andreas Shimokawa
parent a10fc8ad4e
commit 78494f3155
1 changed files with 5 additions and 0 deletions

View File

@ -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"