Skip to content

Commit

Permalink
Fixed auto start of song on audio focus gain (#263)
Browse files Browse the repository at this point in the history
change audio focus to loss only if song is playing
  • Loading branch information
octacode authored and csoni111 committed Aug 19, 2017
1 parent 8aefb6f commit 0a84fc8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/java/org/amahi/anywhere/service/AudioService.java
Original file line number Diff line number Diff line change
Expand Up @@ -433,9 +433,8 @@ private void setUpAudioVolume() {
private void handleAudioFocusLoss() {
if (isAudioPlaying()) {
pauseAudio();
this.audioFocus = AudioFocus.LOSS;
}

this.audioFocus = AudioFocus.LOSS;
}

private void handleAudioFocusDuck() {
Expand Down

0 comments on commit 0a84fc8

Please sign in to comment.