mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
Removed unsused variable from method getTrimmedText
This commit is contained in:
parent
534215fdbc
commit
0a861317f4
1 changed files with 3 additions and 3 deletions
|
|
@ -58,12 +58,12 @@ public class ExpandableTextView extends android.support.v7.widget.AppCompatTextV
|
|||
@Override
|
||||
public void setText(CharSequence text, BufferType type) {
|
||||
originalText = text;
|
||||
trimmedText = getTrimmedText(text);
|
||||
trimmedText = getTrimmedText();
|
||||
bufferType = type;
|
||||
setText();
|
||||
}
|
||||
|
||||
private CharSequence getTrimmedText(CharSequence text) {
|
||||
private CharSequence getTrimmedText() {
|
||||
if (originalText != null && originalText.length() > trimLength) {
|
||||
return new SpannableStringBuilder(originalText, 0, trimLength + 1).append(ELLIPSIS);
|
||||
} else {
|
||||
|
|
@ -77,7 +77,7 @@ public class ExpandableTextView extends android.support.v7.widget.AppCompatTextV
|
|||
|
||||
public void setTrimLength(int trimLength) {
|
||||
this.trimLength = trimLength;
|
||||
trimmedText = getTrimmedText(originalText);
|
||||
trimmedText = getTrimmedText();
|
||||
setText();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue