Some fixes
This commit is contained in:
parent
a680cb77c1
commit
ebcf84b15a
|
@ -125,6 +125,6 @@ dependencies {
|
|||
implementation 'com.github.PhilJay:MPAndroidChart:v3.1.0'
|
||||
|
||||
|
||||
debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.0-beta-2'
|
||||
// debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.0-beta-2'
|
||||
|
||||
}
|
||||
|
|
|
@ -830,7 +830,9 @@ public class Status implements Parcelable{
|
|||
key = key.split("\\|")[0];
|
||||
SpannableStringBuilder ssb = new SpannableStringBuilder();
|
||||
ssb.append(spannableStringT, 0, spannableStringT.length());
|
||||
ssb.replace(startPosition,endPosition, key);
|
||||
if( ssb.length() >= endPosition) {
|
||||
ssb.replace(startPosition,endPosition, key);
|
||||
}
|
||||
spannableStringT = SpannableString.valueOf(ssb);
|
||||
endPosition = startPosition + key.length();
|
||||
}
|
||||
|
@ -881,7 +883,9 @@ public class Status implements Parcelable{
|
|||
key = key.split("…")[0]+"…";
|
||||
SpannableStringBuilder ssb = new SpannableStringBuilder();
|
||||
ssb.append(spannableStringT, 0, spannableStringT.length());
|
||||
ssb.replace(startPosition,endPosition, key);
|
||||
if( ssb.length() >= endPosition) {
|
||||
ssb.replace(startPosition, endPosition, key);
|
||||
}
|
||||
spannableStringT = SpannableString.valueOf(ssb);
|
||||
endPosition = startPosition + key.length();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue