Skip to content
This repository has been archived by the owner on May 17, 2019. It is now read-only.

Commit

Permalink
Update Picasso library to 2.71828
Browse files Browse the repository at this point in the history
  • Loading branch information
jasvilladarez authored and Jasmine Villadarez committed Sep 20, 2018
1 parent c148862 commit f58ccd8
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dependencies.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ ext {
dexmakerMockito : 'com.linkedin.dexmaker:dexmaker-mockito:2.2.0',

// Other
picasso : 'com.squareup.picasso:picasso:2.5.2',
picasso : 'com.squareup.picasso:picasso:2.71828',
supportCompatV4 : 'com.android.support:support-compat:26.1.0',
supportCoreV4 : 'com.android.support:support-core-ui:26.1.0',
retrofit : 'com.squareup.retrofit2:retrofit:2.3.0',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public ComposerView(Context context, AttributeSet attrs, int defStyle) {
}

private void init(Context context) {
imageLoader = Picasso.with(getContext());
imageLoader = Picasso.get();
// TODO: make color vary depending on the style
mediaBg = new ColorDrawable(context.getResources()
.getColor(R.color.tw__composer_light_gray));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public Object instantiateItem(ViewGroup container, int position) {
container.addView(root);

final MediaEntity entity = items.get(position);
Picasso.with(context).load(entity.mediaUrlHttps).into(root);
Picasso.get().load(entity.mediaUrlHttps).into(root);

return root;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public static TweetUi getInstance() {
guestSessionProvider = twitterCore.getGuestSessionProvider();
tweetRepository = new TweetRepository(new Handler(Looper.getMainLooper()),
twitterCore.getSessionManager());
imageLoader = Picasso.with(Twitter.getInstance().getContext(getIdentifier()));
imageLoader = Picasso.get();
}

public String getIdentifier() {
Expand Down

0 comments on commit f58ccd8

Please sign in to comment.