Unverified Commit e0bf727b authored by Mygod's avatar Mygod Committed by GitHub

Add missing parentheses

parent b1c8d3c6
...@@ -72,7 +72,7 @@ class ServiceNotification(private val service: BaseService, profileName: String, ...@@ -72,7 +72,7 @@ class ServiceNotification(private val service: BaseService, profileName: String,
val screenFilter = new IntentFilter() val screenFilter = new IntentFilter()
screenFilter.addAction(Intent.ACTION_SCREEN_ON) screenFilter.addAction(Intent.ACTION_SCREEN_ON)
screenFilter.addAction(Intent.ACTION_SCREEN_OFF) 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) service.registerReceiver(lockReceiver, screenFilter)
private def update(action: String, forceShow: Boolean = false) = private def update(action: String, forceShow: Boolean = false) =
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment