diff options
author | Allan Wang <me@allanwang.ca> | 2021-04-17 18:41:11 -0700 |
---|---|---|
committer | Allan Wang <me@allanwang.ca> | 2021-04-17 18:41:11 -0700 |
commit | 7a2026fb3f0342bf42824cb1b7d53f27730e8b01 (patch) | |
tree | 75b1f60a89b3b08baecada090227d036b871b283 /app/src/main/kotlin/com/pitchedapps/frost/services | |
parent | 8b233b2629039e8144fe6eef5438125cd48c8973 (diff) | |
download | frost-7a2026fb3f0342bf42824cb1b7d53f27730e8b01.tar.gz frost-7a2026fb3f0342bf42824cb1b7d53f27730e8b01.tar.bz2 frost-7a2026fb3f0342bf42824cb1b7d53f27730e8b01.zip |
Inject tab items
Diffstat (limited to 'app/src/main/kotlin/com/pitchedapps/frost/services')
-rw-r--r-- | app/src/main/kotlin/com/pitchedapps/frost/services/UpdateReceiver.kt | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/services/UpdateReceiver.kt b/app/src/main/kotlin/com/pitchedapps/frost/services/UpdateReceiver.kt index 439838a9..81e08e71 100644 --- a/app/src/main/kotlin/com/pitchedapps/frost/services/UpdateReceiver.kt +++ b/app/src/main/kotlin/com/pitchedapps/frost/services/UpdateReceiver.kt @@ -21,17 +21,20 @@ import android.content.Context import android.content.Intent import com.pitchedapps.frost.prefs.Prefs import com.pitchedapps.frost.utils.L +import dagger.hilt.android.AndroidEntryPoint import org.koin.core.component.KoinComponent -import org.koin.core.component.inject +import javax.inject.Inject /** * Created by Allan Wang on 2017-05-31. * * Receiver that is triggered whenever the app updates so it can bind the notifications again */ +@AndroidEntryPoint class UpdateReceiver : BroadcastReceiver(), KoinComponent { - private val prefs: Prefs by inject() + @Inject + lateinit var prefs: Prefs override fun onReceive(context: Context, intent: Intent) { if (intent.action != Intent.ACTION_MY_PACKAGE_REPLACED) return |