OSDN Git Service

Small optimization when getting the spans
authorFabrice Di Meglio <fdimeglio@google.com>
Tue, 15 Feb 2011 22:31:26 +0000 (14:31 -0800)
committerFabrice Di Meglio <fdimeglio@google.com>
Tue, 15 Feb 2011 22:31:26 +0000 (14:31 -0800)
commita2a035ef47449d2c35c0fe552f629ebddfbc6312
treea98c5c7dc62396cadddf540fc982f7b6278ea513
parent09f18d05034f14b609d25bfa899c0404856fdbee
Small optimization when getting the spans

- loop earlier if the kind is not the one we want

Change-Id: I5b020f20a144678ad2f7a4bca8fef64eb6ae491f
core/java/android/text/SpannableStringInternal.java