From 903a88df1cc2a246fc1767ad13f1b49366d0705e Mon Sep 17 00:00:00 2001 From: Ezerous Date: Mon, 13 Nov 2017 13:17:38 +0200 Subject: [PATCH] MaterialDrawer Hotfix (library update broke user's avatar) --- app/src/main/java/gr/thmmy/mthmmy/base/BaseActivity.java | 2 +- app/src/main/java/gr/thmmy/mthmmy/base/BaseApplication.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/gr/thmmy/mthmmy/base/BaseActivity.java b/app/src/main/java/gr/thmmy/mthmmy/base/BaseActivity.java index efc78db9..56cb7419 100644 --- a/app/src/main/java/gr/thmmy/mthmmy/base/BaseActivity.java +++ b/app/src/main/java/gr/thmmy/mthmmy/base/BaseActivity.java @@ -251,7 +251,7 @@ public abstract class BaseActivity extends AppCompatActivity { .withSelectedIcon(aboutIconSelected); //Profile - profileDrawerItem = new ProfileDrawerItem().withName(sessionManager.getUsername()); + profileDrawerItem = new ProfileDrawerItem().withName(sessionManager.getUsername()).withIdentifier(0); //AccountHeader accountHeader = new AccountHeaderBuilder() diff --git a/app/src/main/java/gr/thmmy/mthmmy/base/BaseApplication.java b/app/src/main/java/gr/thmmy/mthmmy/base/BaseApplication.java index 24c84558..35318579 100644 --- a/app/src/main/java/gr/thmmy/mthmmy/base/BaseApplication.java +++ b/app/src/main/java/gr/thmmy/mthmmy/base/BaseApplication.java @@ -97,7 +97,7 @@ public class BaseApplication extends Application { //Initialize and create the image loader logic DrawerImageLoader.init(new AbstractDrawerImageLoader() { @Override - public void set(ImageView imageView, Uri uri, Drawable placeholder) { + public void set(ImageView imageView, Uri uri, Drawable placeholder, String tag) { Picasso.with(imageView.getContext()).load(uri).placeholder(placeholder).into(imageView); }