diff options
author | Allan Wang <me@allanwang.ca> | 2017-06-05 23:25:31 -0700 |
---|---|---|
committer | Allan Wang <me@allanwang.ca> | 2017-06-05 23:25:31 -0700 |
commit | 768e75c535623504f972603a89d1ac7d20cd48a0 (patch) | |
tree | 218163a8e822c5d0bef83aa0efa20c6336478284 /app/src/main/kotlin/com/pitchedapps/frost/views/AccountItem.kt | |
parent | bc0559e9cc494df35d8cbeaf4aa49f16549ee3e3 (diff) | |
download | frost-768e75c535623504f972603a89d1ac7d20cd48a0.tar.gz frost-768e75c535623504f972603a89d1ac7d20cd48a0.tar.bz2 frost-768e75c535623504f972603a89d1ac7d20cd48a0.zip |
Add fabric properties
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.kt | 2 |
1 files changed, 2 insertions, 0 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 9d6099c6..5a17fa8f 100644 --- a/app/src/main/kotlin/com/pitchedapps/frost/views/AccountItem.kt +++ b/app/src/main/kotlin/com/pitchedapps/frost/views/AccountItem.kt @@ -13,6 +13,7 @@ import com.bumptech.glide.request.RequestListener import com.bumptech.glide.request.target.Target import com.mikepenz.fastadapter.items.AbstractItem import com.pitchedapps.frost.R +import com.pitchedapps.frost.dbflow.CookieModel import com.pitchedapps.frost.facebook.PROFILE_PICTURE_URL import com.pitchedapps.frost.utils.bindView @@ -21,6 +22,7 @@ import com.pitchedapps.frost.utils.bindView */ class AccountItem(val id: Long, val name: String) : AbstractItem<AccountItem, AccountItem.ViewHolder>() { constructor() : this(-1L, "") + constructor(cookie: CookieModel) : this(cookie.id, cookie.name ?: "") override fun getType(): Int = R.id.item_account |