Skip to content

Commit 9f204b8

Browse files
tonyr59hmaxme
authored andcommitted
Removing potential race condition with WP image loading threads.
1 parent 9ceea72 commit 9f204b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

WordPressUtils/src/main/java/org/wordpress/android/util/helpers/WPImageSpan.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public int getStartPosition() {
4141
}
4242

4343
public int getEndPosition() {
44-
return mEndPosition < mStartPosition ? mStartPosition : mEndPosition;
44+
return mEndPosition < getStartPosition() ? getStartPosition() : mEndPosition;
4545
}
4646

4747
public MediaFile getMediaFile() {

0 commit comments

Comments
 (0)