package com.vayunmathur.watch.wear.platform import android.content.BroadcastReceiver import android.content.Context import android.content.Intent import com.vayunmathur.watch.wear.service.ConduitService /** Starts the conduit foreground service after boot or app replacement. */ class BootReceiver : BroadcastReceiver() { override fun onReceive(context: Context, intent: Intent) { when (intent.action) { Intent.ACTION_BOOT_COMPLETED, Intent.ACTION_MY_PACKAGE_REPLACED, -> ConduitService.start(context) } } }