Add missing parentheses

This commit is contained in:
Mygod
2017-11-15 00:40:14 -08:00
committed by GitHub
parent b1c8d3c617
commit e0bf727bf4
@@ -72,7 +72,7 @@ class ServiceNotification(private val service: BaseService, profileName: String,
val screenFilter = new IntentFilter()
screenFilter.addAction(Intent.ACTION_SCREEN_ON)
screenFilter.addAction(Intent.ACTION_SCREEN_OFF)
if (visible && 21 until 26 contains Build.VERSION.SDK_INT) screenFilter.addAction(Intent.ACTION_USER_PRESENT)
if (visible && (21 until 26 contains Build.VERSION.SDK_INT)) screenFilter.addAction(Intent.ACTION_USER_PRESENT)
service.registerReceiver(lockReceiver, screenFilter)
private def update(action: String, forceShow: Boolean = false) =