mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-06-05 21:59:19 +02:00
adding a null check at the MediaSideScroll
This commit is contained in:
@@ -121,7 +121,7 @@ class MediaSideScroll(context: Context, attrs: AttributeSet) : RelativeLayout(co
|
|||||||
return true
|
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 {
|
private fun getCurrentBrightness(): Int {
|
||||||
return try {
|
return try {
|
||||||
|
Reference in New Issue
Block a user