Skip to content

Commit

Permalink
Correct High profile
Browse files Browse the repository at this point in the history
  • Loading branch information
Navid200 committed Apr 11, 2024
1 parent 9dcc16a commit 79a4d3b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@ protected void VibrateNotifyMakeNoise(Context context, AlertType alert, String b
}
volumeFrac = Math.max(volumeFrac, 0); // Limit volumeFrac to values greater than and equal to 0
volumeFrac = Math.min(volumeFrac, 1); // Limit volumeFrac to values less than and equal to 1
if (Pref.getBooleanDefaultFalse("ascending_volume_to_medium")) { // If ascending_volume_to_medium is enabled
if (Pref.getBooleanDefaultFalse("ascending_volume_to_medium") && profile == ALERT_PROFILE_ASCENDING) { // If ascending volume profile is chosen and ascending_volume_to_medium is enabled
volumeFrac = Math.min(volumeFrac, (float) 0.7); // Clamp the ascending volume at the medium level.
}
if (profile == ALERT_PROFILE_MEDIUM) {
Expand Down

0 comments on commit 79a4d3b

Please sign in to comment.