mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 04:43:54 +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
|
@Override
|
||||||
public void setText(CharSequence text, BufferType type) {
|
public void setText(CharSequence text, BufferType type) {
|
||||||
originalText = text;
|
originalText = text;
|
||||||
trimmedText = getTrimmedText(text);
|
trimmedText = getTrimmedText();
|
||||||
bufferType = type;
|
bufferType = type;
|
||||||
setText();
|
setText();
|
||||||
}
|
}
|
||||||
|
|
||||||
private CharSequence getTrimmedText(CharSequence text) {
|
private CharSequence getTrimmedText() {
|
||||||
if (originalText != null && originalText.length() > trimLength) {
|
if (originalText != null && originalText.length() > trimLength) {
|
||||||
return new SpannableStringBuilder(originalText, 0, trimLength + 1).append(ELLIPSIS);
|
return new SpannableStringBuilder(originalText, 0, trimLength + 1).append(ELLIPSIS);
|
||||||
} else {
|
} else {
|
||||||
|
|
@ -77,7 +77,7 @@ public class ExpandableTextView extends android.support.v7.widget.AppCompatTextV
|
||||||
|
|
||||||
public void setTrimLength(int trimLength) {
|
public void setTrimLength(int trimLength) {
|
||||||
this.trimLength = trimLength;
|
this.trimLength = trimLength;
|
||||||
trimmedText = getTrimmedText(originalText);
|
trimmedText = getTrimmedText();
|
||||||
setText();
|
setText();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue