Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
moneytoo committed Apr 14, 2021
1 parent 7f56ae7 commit 890b5d5
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions app/src/main/java/com/brouken/player/Utils.java
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,13 @@ public static void adjustVolume(final AudioManager audioManager, final CustomSty
else if (!raise && PlayerActivity.boostLevel > 0)
PlayerActivity.boostLevel--;

if (PlayerActivity.loudnessEnhancer != null)
PlayerActivity.loudnessEnhancer.setTargetGain(PlayerActivity.boostLevel * 200);
if (PlayerActivity.loudnessEnhancer != null) {
try {
PlayerActivity.loudnessEnhancer.setTargetGain(PlayerActivity.boostLevel * 200);
} catch (RuntimeException e) {
e.printStackTrace();
}
}
playerView.setCustomErrorMessage(" " + (volumeMax + PlayerActivity.boostLevel));
}

Expand Down

0 comments on commit 890b5d5

Please sign in to comment.