From 926195eb9de02f02a7ce62a3c09feab4b9315f62 Mon Sep 17 00:00:00 2001 From: Tony Rankin Date: Tue, 28 Apr 2015 17:01:39 -0700 Subject: [PATCH] Removing potential race condition with WP image loading threads. --- .../java/org/wordpress/android/util/helpers/WPImageSpan.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WordPressUtils/src/main/java/org/wordpress/android/util/helpers/WPImageSpan.java b/WordPressUtils/src/main/java/org/wordpress/android/util/helpers/WPImageSpan.java index 17b13971ca03..fa0a0b4aa98b 100644 --- a/WordPressUtils/src/main/java/org/wordpress/android/util/helpers/WPImageSpan.java +++ b/WordPressUtils/src/main/java/org/wordpress/android/util/helpers/WPImageSpan.java @@ -41,7 +41,7 @@ public int getStartPosition() { } public int getEndPosition() { - return mEndPosition < mStartPosition ? mStartPosition : mEndPosition; + return mEndPosition < getStartPosition() ? getStartPosition() : mEndPosition; } public MediaFile getMediaFile() {