Skip to content

Commit dbaf452

Browse files
committed
Updated comment
1 parent e38d62a commit dbaf452

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

WordPressUtils/src/main/java/org/wordpress/android/util/WPImageGetter.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,9 @@ public void onResponse(ImageLoader.ImageContainer response, boolean isImmediate)
100100
Drawable drawable = new BitmapDrawable(view.getContext().getResources(), response.getBitmap());
101101
remote.setRemoteDrawable(drawable, maxWidth);
102102

103-
// force textView to resize correctly if image isn't cached
103+
// force textView to resize correctly if image isn't cached by resetting the content
104+
// to itself - this way the textView will use the cached image, and resizing to
105+
// accommodate the image isn't necessary
104106
if (!isImmediate) {
105107
view.setText(view.getText());
106108
}

0 commit comments

Comments
 (0)