Move WAKE_LOCK_TAG to const val

This commit is contained in:
sim 2023-08-29 23:10:02 +02:00
parent ee8f497644
commit c6d39fb073
1 changed files with 2 additions and 2 deletions

View File

@ -28,9 +28,9 @@ import kotlin.concurrent.schedule
private val createQueue = emptyList<String>().toMutableList() private val createQueue = emptyList<String>().toMutableList()
private val delQueue = emptyList<String>().toMutableList() private val delQueue = emptyList<String>().toMutableList()
class RegisterBroadcastReceiver : BroadcastReceiver() { private const val WAKE_LOCK_TAG = "NextPush:RegisterBroadcastReceiver:lock"
private val WAKE_LOCK_TAG = "NextPush:RegisterBroadcastReceiver:lock" class RegisterBroadcastReceiver : BroadcastReceiver() {
override fun onReceive(context: Context, intent: Intent?) { override fun onReceive(context: Context, intent: Intent?) {
wakeLock = (context.getSystemService(Context.POWER_SERVICE) as PowerManager).run { wakeLock = (context.getSystemService(Context.POWER_SERVICE) as PowerManager).run {