mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-22 20:48:00 +01:00
adding a null check at the MediaSideScroll
This commit is contained in:
parent
4595f6549a
commit
6033d6a812
1 changed files with 1 additions and 1 deletions
|
@ -121,7 +121,7 @@ class MediaSideScroll(context: Context, attrs: AttributeSet) : RelativeLayout(co
|
|||
return true
|
||||
}
|
||||
|
||||
private fun getCurrentVolume() = activity!!.audioManager.getStreamVolume(AudioManager.STREAM_MUSIC)
|
||||
private fun getCurrentVolume() = activity?.audioManager?.getStreamVolume(AudioManager.STREAM_MUSIC) ?: 0
|
||||
|
||||
private fun getCurrentBrightness(): Int {
|
||||
return try {
|
||||
|
|
Loading…
Reference in a new issue