diff options
author | Allan Wang <me@allanwang.ca> | 2017-07-08 19:21:13 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-08 19:21:13 -0400 |
commit | 085295d5dbda84ff02221cc65bd472fff69e636e (patch) | |
tree | 12768bed871581a054941b030f1e1224278fc794 /app/src/main/kotlin/com/pitchedapps/frost/views | |
parent | b10a745c7f0f46f4f014e1ba7fa71172d7442b83 (diff) | |
download | frost-085295d5dbda84ff02221cc65bd472fff69e636e.tar.gz frost-085295d5dbda84ff02221cc65bd472fff69e636e.tar.bz2 frost-085295d5dbda84ff02221cc65bd472fff69e636e.zip |
Dev 1.2.1 (#43) - Revamp notificationsv1.2.1
* Test proguard
* Test proguard without enums
* Allow notifications from only current account
* Prettify notifications
* Clean up layouts
* Test proguard log
* Update rxkotlin
* Update remaining dependencies
Diffstat (limited to 'app/src/main/kotlin/com/pitchedapps/frost/views')
-rw-r--r-- | app/src/main/kotlin/com/pitchedapps/frost/views/AccountItem.kt | 4 |
1 files changed, 2 insertions, 2 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 0fb9dbbb..5186b46c 100644 --- a/app/src/main/kotlin/com/pitchedapps/frost/views/AccountItem.kt +++ b/app/src/main/kotlin/com/pitchedapps/frost/views/AccountItem.kt @@ -21,6 +21,7 @@ import com.pitchedapps.frost.R import com.pitchedapps.frost.dbflow.CookieModel import com.pitchedapps.frost.facebook.PROFILE_PICTURE_URL import com.pitchedapps.frost.utils.Prefs +import com.pitchedapps.frost.utils.withRoundIcon /** * Created by Allan Wang on 2017-06-05. @@ -35,8 +36,7 @@ class AccountItem(val cookie: CookieModel?) : KauIItem<AccountItem, AccountItem. text.setTextColor(Prefs.textColor) if (cookie != null) { text.text = cookie.name - val options = RequestOptions().transform(CircleCrop()) - Glide.with(itemView).load(PROFILE_PICTURE_URL(cookie.id)).apply(options).listener(object : RequestListener<Drawable> { + Glide.with(itemView).load(PROFILE_PICTURE_URL(cookie.id)).withRoundIcon().listener(object : RequestListener<Drawable> { override fun onResourceReady(resource: Drawable?, model: Any?, target: Target<Drawable>?, dataSource: DataSource?, isFirstResource: Boolean): Boolean { text.fadeIn() return false |