From 3f8e6c26a348562799762ae1289195e557a02eaa Mon Sep 17 00:00:00 2001 From: Tom Hennen Date: Wed, 14 Aug 2013 12:26:03 -0400 Subject: [PATCH 1/2] Adds an option to pause audio while audio focus is lost. This is helpful when using navigation apps (for example) so that you can hear what the navigation app says and you don't miss whatever was being said on your podcast. Without this setting checked they may wind up talking over each other, which can be confusing. --- res/values/strings.xml | 2 ++ res/xml/preferences.xml | 7 ++++++- .../antennapod/preferences/UserPreferences.java | 10 ++++++++++ .../antennapod/service/PlaybackService.java | 17 ++++++++++++----- 4 files changed, 30 insertions(+), 6 deletions(-) diff --git a/res/values/strings.xml b/res/values/strings.xml index b3f9975cb..2060dc777 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -250,5 +250,7 @@ Folder is not empty The folder you have selected is not empty. Media downloads and other files will be placed directly in this folder. Continue anyway? Choose default folder + Pause playback instead of lowering volume when another app wants to play sounds + Pause for notifications \ No newline at end of file diff --git a/res/xml/preferences.xml b/res/xml/preferences.xml index e94d1c47e..2cc4c7237 100644 --- a/res/xml/preferences.xml +++ b/res/xml/preferences.xml @@ -17,7 +17,12 @@ android:key="prefFollowQueue" android:summary="@string/pref_followQueue_sum" android:title="@string/pref_followQueue_title" /> - + Date: Wed, 14 Aug 2013 12:47:04 -0400 Subject: [PATCH 2/2] updated name of the preference to use 'FocusLoss' rather than 'Notifications' to more accurately reflect what it does --- res/values/strings.xml | 4 ++-- res/xml/preferences.xml | 6 +++--- .../antennapod/preferences/UserPreferences.java | 14 +++++++------- .../danoeh/antennapod/service/PlaybackService.java | 2 +- 4 files changed, 13 insertions(+), 13 deletions(-) diff --git a/res/values/strings.xml b/res/values/strings.xml index 2060dc777..cf33d0b4c 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -250,7 +250,7 @@ Folder is not empty The folder you have selected is not empty. Media downloads and other files will be placed directly in this folder. Continue anyway? Choose default folder - Pause playback instead of lowering volume when another app wants to play sounds - Pause for notifications + Pause playback instead of lowering volume when another app wants to play sounds + Pause for interruptions \ No newline at end of file diff --git a/res/xml/preferences.xml b/res/xml/preferences.xml index 2cc4c7237..931aa5c2d 100644 --- a/res/xml/preferences.xml +++ b/res/xml/preferences.xml @@ -20,9 +20,9 @@ + android:key="prefPauseForFocusLoss" + android:summary="@string/pref_pausePlaybackForFocusLoss_sum" + android:title="@string/pref_pausePlaybackForFocusLoss_title" />