Last active
January 28, 2020 20:09
-
-
Save farhanfahim/bcb94bbfbfeeac6c6dc2bec660bca0ed to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Bitmap bitmap1; | |
String imageUrl = sharedPreferenceManager.getCurrentUser().getUserDetails().getImageUrl(); | |
Picasso.get().load(imageUrl).into(new Target() { | |
@Override | |
public void onBitmapLoaded(Bitmap bitmap, Picasso.LoadedFrom from) { | |
bitmap1 = bitmap; | |
} | |
@Override | |
public void onBitmapFailed(Exception e, Drawable errorDrawable) { | |
} | |
@Override | |
public void onPrepareLoad(Drawable placeHolderDrawable) {} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment