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/fragments | |
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/fragments')
-rw-r--r-- | app/src/main/kotlin/com/pitchedapps/frost/fragments/FragmentBase.kt | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/fragments/FragmentBase.kt b/app/src/main/kotlin/com/pitchedapps/frost/fragments/FragmentBase.kt index f7d6b0ad..c4f7d6fb 100644 --- a/app/src/main/kotlin/com/pitchedapps/frost/fragments/FragmentBase.kt +++ b/app/src/main/kotlin/com/pitchedapps/frost/fragments/FragmentBase.kt @@ -49,7 +49,6 @@ import kotlinx.coroutines.SupervisorJob import kotlinx.coroutines.channels.ReceiveChannel import kotlinx.coroutines.isActive import kotlinx.coroutines.launch -import org.koin.android.ext.android.inject import javax.inject.Inject import kotlin.coroutines.CoroutineContext @@ -90,11 +89,17 @@ abstract class BaseFragment : } @Inject - lateinit var mainContract: MainActivityContract + protected lateinit var mainContract: MainActivityContract + + @Inject + protected lateinit var fbCookie: FbCookie + + @Inject + protected lateinit var prefs: Prefs + + @Inject + protected lateinit var themeProvider: ThemeProvider - protected val fbCookie: FbCookie by inject() - protected val prefs: Prefs by inject() - protected val themeProvider: ThemeProvider by inject() open lateinit var job: Job override val coroutineContext: CoroutineContext get() = ContextHelper.dispatcher + job |