jroal / a2dpvolume

Automatically exported from code.google.com/p/a2dpvolume
http://jimroal.com/slist.htm
95 stars 33 forks source link

setStreamVolume crash #279

Closed jroal closed 5 years ago

jroal commented 5 years ago

Andrdoid N requires extra permission to set to do not disturb.: https://developer.android.com/reference/android/media/AudioManager.html#setStreamVolume(int,%20int,%20int)

jroal commented 5 years ago

Added permissions checks to prevent crashing. If permission is not granted, setting to silent simply will not work. Added log messages for this as well. Implemented in 2.12.12.2.