Added setting item for vibrate on remote press

This commit is contained in:
Akshay Zade 2015-07-19 14:23:29 +05:30
parent 47f4875762
commit 4427ca0dbc
3 changed files with 10 additions and 0 deletions

View File

@ -88,6 +88,10 @@ public interface Settings {
public static final String KEY_PREF_USE_HARDWARE_VOLUME_KEYS = "pref_use_hardware_volume_keys";
public static final boolean DEFAULT_PREF_USE_HARDWARE_VOLUME_KEYS = true;
// Vibrate on remote button press
public static final String KEY_PREF_VIBRATE_REMOTE_BUTTONS = "pref_vibrate_remote_buttons";
public static final boolean DEFAULT_PREF_VIBRATE_REMOTE_BUTTONS = false;
// Current host id
public static final String KEY_PREF_CURRENT_HOST_ID = "current_host_id";
public static final int DEFAULT_PREF_CURRENT_HOST_ID = -1;

View File

@ -302,6 +302,7 @@
<string name="switch_to_remote">Switch to remote after media start</string>
<string name="show_notification">Show notification while playing</string>
<string name="use_hardware_volume_keys">Use volume keys to control volume</string>
<string name="vibrate_on_remote">Vibrate on remote button press</string>
<string name="about">About</string>
<string name="about_desc"><![CDATA[

View File

@ -39,6 +39,11 @@
android:title="@string/use_hardware_volume_keys"
android:defaultValue="true"/>
<CheckBoxPreference
android:key="pref_vibrate_remote_buttons"
android:title="@string/vibrate_on_remote"
android:defaultValue="false"/>
<Preference
android:key="pref_about"
android:title="@string/about"/>