SimpleMobileTools / Simple-Clock

Combination of a beautiful clock with widget, alarm, stopwatch & timer, no ads
https://www.simplemobiletools.com
GNU General Public License v3.0
589 stars 235 forks source link

reset device alarm volume to initial after alarm ends #500

Closed fatihergin closed 1 year ago

fatihergin commented 1 year ago

fix https://github.com/SimpleMobileTools/Simple-Clock/issues/493

remove misused and unnecessary media player method setVolume.: solves ...the gradual increase does not reach full volume

respects to user defined alarm volume while increasing it gradually: increasing alarms weren't respecting to device's alarm volume. it was reaching device's max alarm volume on gradual increase even user don't set alarm volume to max. now, the max allowed volume of gradually increasing alarms are limited to device's alarm volume.

adjust initial alarm volume before media player starts playing.: on the gradually increasing alarms, media player was starting to loud before alarm volume lowered. this was causing to hear the alarm sound at max volume for a while while