aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/kotlin/com/pitchedapps/frost/views/AccountItem.kt
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2021-04-17 19:03:47 -0700
committerAllan Wang <me@allanwang.ca>2021-04-17 19:03:47 -0700
commita56dbf0f61e80225f0d86af43ea0f1d6efa5e66a (patch)
tree38dc6437ba4b669991dc61c92c87e27939e9a608 /app/src/main/kotlin/com/pitchedapps/frost/views/AccountItem.kt
parente1ae3536102a5bb83a3c73c3731eb4af56b96914 (diff)
downloadfrost-a56dbf0f61e80225f0d86af43ea0f1d6efa5e66a.tar.gz
frost-a56dbf0f61e80225f0d86af43ea0f1d6efa5e66a.tar.bz2
frost-a56dbf0f61e80225f0d86af43ea0f1d6efa5e66a.zip
Injection checkpoint
Diffstat (limited to 'app/src/main/kotlin/com/pitchedapps/frost/views/AccountItem.kt')
-rw-r--r--app/src/main/kotlin/com/pitchedapps/frost/views/AccountItem.kt11
1 files changed, 4 insertions, 7 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/views/AccountItem.kt b/app/src/main/kotlin/com/pitchedapps/frost/views/AccountItem.kt
index 6eebd36f..e15538b8 100644
--- a/app/src/main/kotlin/com/pitchedapps/frost/views/AccountItem.kt
+++ b/app/src/main/kotlin/com/pitchedapps/frost/views/AccountItem.kt
@@ -38,17 +38,14 @@ import com.pitchedapps.frost.facebook.profilePictureUrl
import com.pitchedapps.frost.glide.FrostGlide
import com.pitchedapps.frost.glide.GlideApp
import com.pitchedapps.frost.injectors.ThemeProvider
-import org.koin.core.component.KoinComponent
-import org.koin.core.component.inject
/**
* Created by Allan Wang on 2017-06-05.
*/
-class AccountItem(val cookie: CookieEntity?) :
- KauIItem<AccountItem.ViewHolder>(R.layout.view_account, { ViewHolder(it) }, R.id.item_account),
- KoinComponent {
-
- private val themeProvider: ThemeProvider by inject()
+class AccountItem(
+ val cookie: CookieEntity?,
+ private val themeProvider: ThemeProvider
+) : KauIItem<AccountItem.ViewHolder>(R.layout.view_account, { ViewHolder(it) }, R.id.item_account) {
override fun bindView(holder: ViewHolder, payloads: List<Any>) {
super.bindView(holder, payloads)