aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/kotlin/com/pitchedapps/frost/views/AccountItem.kt
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2017-06-05 23:25:31 -0700
committerAllan Wang <me@allanwang.ca>2017-06-05 23:25:31 -0700
commit768e75c535623504f972603a89d1ac7d20cd48a0 (patch)
tree218163a8e822c5d0bef83aa0efa20c6336478284 /app/src/main/kotlin/com/pitchedapps/frost/views/AccountItem.kt
parentbc0559e9cc494df35d8cbeaf4aa49f16549ee3e3 (diff)
downloadfrost-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.kt2
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