Loading core/java/android/text/SpannableStringBuilder.java +7 −9 Original line number Diff line number Diff line Loading @@ -18,6 +18,7 @@ package android.text; import android.graphics.Canvas; import android.graphics.Paint; import android.util.Log; import com.android.internal.util.ArrayUtils; Loading Loading @@ -485,16 +486,13 @@ public class SpannableStringBuilder implements CharSequence, GetChars, Spannable // 0-length Spanned.SPAN_EXCLUSIVE_EXCLUSIVE if (flagsStart == POINT && flagsEnd == MARK && start == end) { if (send) { throw new IllegalArgumentException( if (send) Log.e("SpannableStringBuilder", "SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length"); } else { // Silently ignore invalid spans when they are created from this class. // This avoids the duplication of the above test code before all the // calls to setSpan that are done in this class return; } } int nstart = start; int nend = end; Loading Loading
core/java/android/text/SpannableStringBuilder.java +7 −9 Original line number Diff line number Diff line Loading @@ -18,6 +18,7 @@ package android.text; import android.graphics.Canvas; import android.graphics.Paint; import android.util.Log; import com.android.internal.util.ArrayUtils; Loading Loading @@ -485,16 +486,13 @@ public class SpannableStringBuilder implements CharSequence, GetChars, Spannable // 0-length Spanned.SPAN_EXCLUSIVE_EXCLUSIVE if (flagsStart == POINT && flagsEnd == MARK && start == end) { if (send) { throw new IllegalArgumentException( if (send) Log.e("SpannableStringBuilder", "SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length"); } else { // Silently ignore invalid spans when they are created from this class. // This avoids the duplication of the above test code before all the // calls to setSpan that are done in this class return; } } int nstart = start; int nend = end; Loading