The AUDIO_BECOMING_NOISY intent seems to be broadcast before the HEADSET_PLUG intent. In some cases, the HEADSET_PLUG intent fires so late that audio starts playing through the speaker.. AUDIO_BECOMING_NOISY also handles Bluetooth. The headset only feature was useful to prevent accidental "noisy" playback, however it is cumbersome to implement with the Android audio API being the mess that it is. Thus I've removed it.
95 lines
3.9 KiB
XML
95 lines
3.9 KiB
XML
<?xml version="1.0" encoding="utf-8" ?>
|
|
<!--
|
|
Copyright (C) 2010 Christopher Eby <kreed@kreed.org>
|
|
|
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
of this software and associated documentation files (the "Software"), to deal
|
|
in the Software without restriction, including without limitation the rights
|
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
copies of the Software, and to permit persons to whom the Software is
|
|
furnished to do so, subject to the following conditions:
|
|
|
|
The above copyright notice and this permission notice shall be included in
|
|
all copies or substantial portions of the Software.
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
THE SOFTWARE.
|
|
-->
|
|
<PreferenceScreen
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:persistent="true">
|
|
<PreferenceCategory android:title="@string/pref_output">
|
|
<org.kreed.vanilla.VolumePreference
|
|
android:key="volume"
|
|
android:title="@string/volume_title"
|
|
android:summary="@string/volume_summary" />
|
|
<CheckBoxPreference
|
|
android:key="media_button"
|
|
android:title="@string/media_button_title"
|
|
android:summary="@string/media_button_summary"
|
|
android:defaultValue="true" />
|
|
<CheckBoxPreference
|
|
android:key="headset_pause"
|
|
android:title="@string/headset_pause_title"
|
|
android:defaultValue="true"
|
|
android:summary="@string/headset_pause_summary" />
|
|
</PreferenceCategory>
|
|
<PreferenceCategory android:title="@string/pref_notifications">
|
|
<ListPreference
|
|
android:key="notification_mode"
|
|
android:title="@string/notification_mode_title"
|
|
android:summary="@string/notification_mode_summary"
|
|
android:entries="@array/notification_mode_entries"
|
|
android:entryValues="@array/entry_values"
|
|
android:defaultValue="1" />
|
|
<ListPreference
|
|
android:key="notification_action"
|
|
android:title="@string/notification_action_title"
|
|
android:summary="@string/notification_action_summary"
|
|
android:entries="@array/notification_action_entries"
|
|
android:entryValues="@array/entry_values"
|
|
android:defaultValue="0" />
|
|
</PreferenceCategory>
|
|
<PreferenceCategory android:title="@string/pref_song_selector">
|
|
<CheckBoxPreference
|
|
android:key="selector_on_startup"
|
|
android:title="@string/selector_on_startup_title"
|
|
android:summary="@string/selector_on_startup_summary"
|
|
android:defaultValue="false" />
|
|
<CheckBoxPreference
|
|
android:key="controls_in_selector"
|
|
android:title="@string/controls_in_selector_title"
|
|
android:summary="@string/controls_in_selector_summary"
|
|
android:defaultValue="false" />
|
|
<ListPreference
|
|
android:key="default_action_int"
|
|
android:title="@string/default_action_title"
|
|
android:summary="@string/default_action_summary"
|
|
android:entries="@array/default_action_entries"
|
|
android:entryValues="@array/entry_values"
|
|
android:defaultValue="0" />
|
|
</PreferenceCategory>
|
|
<PreferenceCategory android:title="@string/pref_misc">
|
|
<CheckBoxPreference
|
|
android:key="use_idle_timeout"
|
|
android:title="@string/use_idle_timeout_title"
|
|
android:summary="@string/use_idle_timeout_summary"
|
|
android:defaultValue="false" />
|
|
<org.kreed.vanilla.IdlePreference
|
|
android:key="idle_timeout"
|
|
android:title="@string/idle_timeout_title"
|
|
android:summary="@string/idle_timeout_summary"
|
|
android:dependency="use_idle_timeout" />
|
|
<CheckBoxPreference
|
|
android:key="scrobble"
|
|
android:title="@string/scrobble_title"
|
|
android:defaultValue="true"
|
|
android:summary="@string/scrobble_summary" />
|
|
</PreferenceCategory>
|
|
</PreferenceScreen>
|