diff --git a/dependencies.gradle b/dependencies.gradle index e8ea5982..1a1db7d2 100644 --- a/dependencies.gradle +++ b/dependencies.gradle @@ -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', diff --git a/tweet-composer/src/main/java/com/twitter/sdk/android/tweetcomposer/ComposerView.java b/tweet-composer/src/main/java/com/twitter/sdk/android/tweetcomposer/ComposerView.java index b3491b9b..e4cfd295 100644 --- a/tweet-composer/src/main/java/com/twitter/sdk/android/tweetcomposer/ComposerView.java +++ b/tweet-composer/src/main/java/com/twitter/sdk/android/tweetcomposer/ComposerView.java @@ -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)); diff --git a/tweet-ui/src/main/java/com/twitter/sdk/android/tweetui/GalleryAdapter.java b/tweet-ui/src/main/java/com/twitter/sdk/android/tweetui/GalleryAdapter.java index 8dbcb965..e96731ca 100644 --- a/tweet-ui/src/main/java/com/twitter/sdk/android/tweetui/GalleryAdapter.java +++ b/tweet-ui/src/main/java/com/twitter/sdk/android/tweetui/GalleryAdapter.java @@ -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; } diff --git a/tweet-ui/src/main/java/com/twitter/sdk/android/tweetui/TweetUi.java b/tweet-ui/src/main/java/com/twitter/sdk/android/tweetui/TweetUi.java index e7b129b7..f55d3508 100644 --- a/tweet-ui/src/main/java/com/twitter/sdk/android/tweetui/TweetUi.java +++ b/tweet-ui/src/main/java/com/twitter/sdk/android/tweetui/TweetUi.java @@ -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() {