diff options
author | Scott Jackson <daneren2005@gmail.com> | 2012-12-08 22:17:45 -0800 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2012-12-08 22:17:45 -0800 |
commit | 2c5d233b59ad93427b334848367e0cc5235e7a29 (patch) | |
tree | 09b81f95ec58b27f25d0052ccb220b1f0f525298 /subsonic-android | |
parent | 57987e4843b45303f5adf7438e6c38390156a479 (diff) | |
download | dsub-2c5d233b59ad93427b334848367e0cc5235e7a29.tar.gz dsub-2c5d233b59ad93427b334848367e0cc5235e7a29.tar.bz2 dsub-2c5d233b59ad93427b334848367e0cc5235e7a29.zip |
Changed default on transient loss of focus option to be pause unless can duck is specified
Diffstat (limited to 'subsonic-android')
-rw-r--r-- | subsonic-android/res/xml/settings.xml | 2 | ||||
-rw-r--r-- | subsonic-android/src/github/daneren2005/dsub/util/Util.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/subsonic-android/res/xml/settings.xml b/subsonic-android/res/xml/settings.xml index b6c82f7f..07d7a64f 100644 --- a/subsonic-android/res/xml/settings.xml +++ b/subsonic-android/res/xml/settings.xml @@ -159,7 +159,7 @@ <ListPreference android:title="@string/settings.temp_loss_title" android:key="tempLoss" - android:defaultValue="0" + android:defaultValue="1" android:entryValues="@array/tempLossValues" android:entries="@array/tempLossNames"/> </PreferenceCategory> diff --git a/subsonic-android/src/github/daneren2005/dsub/util/Util.java b/subsonic-android/src/github/daneren2005/dsub/util/Util.java index 76b9e56b..e6055b93 100644 --- a/subsonic-android/src/github/daneren2005/dsub/util/Util.java +++ b/subsonic-android/src/github/daneren2005/dsub/util/Util.java @@ -773,7 +773,7 @@ public final class Util { if(focusChange == AudioManager.AUDIOFOCUS_LOSS_TRANSIENT || focusChange == AudioManager.AUDIOFOCUS_LOSS_TRANSIENT_CAN_DUCK) { if(downloadService.getPlayerState() == PlayerState.STARTED) { SharedPreferences prefs = getPreferences(context); - int lossPref = Integer.parseInt(prefs.getString(Constants.PREFERENCES_KEY_TEMP_LOSS, "0")); + int lossPref = Integer.parseInt(prefs.getString(Constants.PREFERENCES_KEY_TEMP_LOSS, "1")); if(lossPref == 2 || (lossPref == 1 && focusChange == AudioManager.AUDIOFOCUS_LOSS_TRANSIENT_CAN_DUCK)) { lowerFocus = true; downloadService.setVolume(0.1f); |