Skip to content

Commit 8deae86

Browse files
committed
Use the unicode version of the Horizontal ellipsis char.
Restrict the visibility of some methods to private.
1 parent a38b30c commit 8deae86

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

WordPressUtils/src/main/java/org/wordpress/android/util/AutoResizeTextView.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@
1818
*/
1919
public class AutoResizeTextView extends TextView {
2020
// Minimum text size for this text view
21-
public static final float MIN_TEXT_SIZE = 20;
21+
private static final float MIN_TEXT_SIZE = 20;
2222

2323
// Interface for resize notifications
2424
public interface OnTextResizeListener {
2525
void onTextResize(TextView textView, float oldSize, float newSize);
2626
}
2727

28-
// Our ellipse string
29-
private static final String M_ELLIPSIS = "...";
28+
// Our ellipse string - Unicode Character 'HORIZONTAL ELLIPSIS'
29+
private static final String M_ELLIPSIS = "\u2026";
3030

3131
// Registered resize listener
3232
private OnTextResizeListener mTextResizeListener;
@@ -179,7 +179,7 @@ public boolean getAddEllipsis() {
179179
/**
180180
* Reset the text to the original size
181181
*/
182-
public void resetTextSize() {
182+
private void resetTextSize() {
183183
if (mTextSize > 0) {
184184
super.setTextSize(TypedValue.COMPLEX_UNIT_PX, mTextSize);
185185
mMaxTextSize = mTextSize;

0 commit comments

Comments
 (0)