diff options
author | Allan Wang <me@allanwang.ca> | 2017-06-19 17:08:15 -0700 |
---|---|---|
committer | Allan Wang <me@allanwang.ca> | 2017-06-19 17:08:15 -0700 |
commit | a3b5b647e2651c9768a4056852aff36074590e94 (patch) | |
tree | 4398fd2f27dfda32d26c21d71ed0af746061bdc6 /app/src/main/kotlin/com/pitchedapps/frost/FrostApp.kt | |
parent | 382433780c3f4403723a78e409cb161c9fad5034 (diff) | |
download | frost-a3b5b647e2651c9768a4056852aff36074590e94.tar.gz frost-a3b5b647e2651c9768a4056852aff36074590e94.tar.bz2 frost-a3b5b647e2651c9768a4056852aff36074590e94.zip |
Created notification badges
Diffstat (limited to 'app/src/main/kotlin/com/pitchedapps/frost/FrostApp.kt')
-rw-r--r-- | app/src/main/kotlin/com/pitchedapps/frost/FrostApp.kt | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/FrostApp.kt b/app/src/main/kotlin/com/pitchedapps/frost/FrostApp.kt index 6afc84fd..3a559bc2 100644 --- a/app/src/main/kotlin/com/pitchedapps/frost/FrostApp.kt +++ b/app/src/main/kotlin/com/pitchedapps/frost/FrostApp.kt @@ -48,18 +48,18 @@ class FrostApp : Application() { FbCookie() super.onCreate() //Drawer profile loading logic - DrawerImageLoader.init(object : AbstractDrawerImageLoader() { - override fun set(imageView: ImageView, uri: Uri, placeholder: Drawable, tag: String) { - Glide.with(imageView.context).load(uri).apply(RequestOptions().placeholder(placeholder)).into(imageView) - } - - override fun placeholder(ctx: Context, tag: String): Drawable { - when (tag) { - DrawerImageLoader.Tags.PROFILE.name, DrawerImageLoader.Tags.ACCOUNT_HEADER.name -> DrawerUIUtils.getPlaceHolder(ctx) - } - return super.placeholder(ctx, tag); - } - }) +// DrawerImageLoader.init(object : AbstractDrawerImageLoader() { +// override fun set(imageView: ImageView, uri: Uri, placeholder: Drawable, tag: String) { +// Glide.with(imageView.context).load(uri).apply(RequestOptions().placeholder(placeholder)).into(imageView) +// } +// +// override fun placeholder(ctx: Context, tag: String): Drawable { +// when (tag) { +// DrawerImageLoader.Tags.PROFILE.name, DrawerImageLoader.Tags.ACCOUNT_HEADER.name -> DrawerUIUtils.getPlaceHolder(ctx) +// } +// return super.placeholder(ctx, tag); +// } +// }) } |