diff --git a/app/src/main/java/org/unifiedpush/distributor/nextpush/receivers/RegisterBroadcastReceiver.kt b/app/src/main/java/org/unifiedpush/distributor/nextpush/receivers/RegisterBroadcastReceiver.kt index f9d3507..50a217b 100644 --- a/app/src/main/java/org/unifiedpush/distributor/nextpush/receivers/RegisterBroadcastReceiver.kt +++ b/app/src/main/java/org/unifiedpush/distributor/nextpush/receivers/RegisterBroadcastReceiver.kt @@ -28,9 +28,9 @@ import kotlin.concurrent.schedule private val createQueue = emptyList().toMutableList() private val delQueue = emptyList().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?) { wakeLock = (context.getSystemService(Context.POWER_SERVICE) as PowerManager).run {