aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/kotlin/com/pitchedapps/frost/FrostApp.kt
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2017-06-19 17:08:15 -0700
committerAllan Wang <me@allanwang.ca>2017-06-19 17:08:15 -0700
commita3b5b647e2651c9768a4056852aff36074590e94 (patch)
tree4398fd2f27dfda32d26c21d71ed0af746061bdc6 /app/src/main/kotlin/com/pitchedapps/frost/FrostApp.kt
parent382433780c3f4403723a78e409cb161c9fad5034 (diff)
downloadfrost-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.kt24
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);
+// }
+// })
}