Browse Source

MaterialDrawer Hotfix

(library update broke user's avatar)
pull/24/head
Ezerous 7 years ago
parent
commit
903a88df1c
  1. 2
      app/src/main/java/gr/thmmy/mthmmy/base/BaseActivity.java
  2. 2
      app/src/main/java/gr/thmmy/mthmmy/base/BaseApplication.java

2
app/src/main/java/gr/thmmy/mthmmy/base/BaseActivity.java

@ -251,7 +251,7 @@ public abstract class BaseActivity extends AppCompatActivity {
.withSelectedIcon(aboutIconSelected); .withSelectedIcon(aboutIconSelected);
//Profile //Profile
profileDrawerItem = new ProfileDrawerItem().withName(sessionManager.getUsername()); profileDrawerItem = new ProfileDrawerItem().withName(sessionManager.getUsername()).withIdentifier(0);
//AccountHeader //AccountHeader
accountHeader = new AccountHeaderBuilder() accountHeader = new AccountHeaderBuilder()

2
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 //Initialize and create the image loader logic
DrawerImageLoader.init(new AbstractDrawerImageLoader() { DrawerImageLoader.init(new AbstractDrawerImageLoader() {
@Override @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); Picasso.with(imageView.getContext()).load(uri).placeholder(placeholder).into(imageView);
} }

Loading…
Cancel
Save