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 20:25:58 -0700
committerAllan Wang <me@allanwang.ca>2017-06-19 20:25:58 -0700
commitab61f2afd887d772426bda9d9aea829557e2e39d (patch)
treef715f9441679126bf1ace3603a7a1538ed43e092 /app/src/main/kotlin/com/pitchedapps/frost/FrostApp.kt
parenta3b5b647e2651c9768a4056852aff36074590e94 (diff)
downloadfrost-ab61f2afd887d772426bda9d9aea829557e2e39d.tar.gz
frost-ab61f2afd887d772426bda9d9aea829557e2e39d.tar.bz2
frost-ab61f2afd887d772426bda9d9aea829557e2e39d.zip
Update kau and show changelog on version change
Diffstat (limited to 'app/src/main/kotlin/com/pitchedapps/frost/FrostApp.kt')
-rw-r--r--app/src/main/kotlin/com/pitchedapps/frost/FrostApp.kt17
1 files changed, 5 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 3a559bc2..dc9f0c11 100644
--- a/app/src/main/kotlin/com/pitchedapps/frost/FrostApp.kt
+++ b/app/src/main/kotlin/com/pitchedapps/frost/FrostApp.kt
@@ -48,18 +48,11 @@ 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)
+ }
+ })
}