Skip to content

Commit beda85a

Browse files
committed
1. 修复缩放模式切换失效问题
1 parent ef66898 commit beda85a

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

library/src/main/java/com/coorchice/library/SuperTextView.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@ public class SuperTextView extends TextView {
100100
private int height;
101101
private Drawable drawable;
102102
private Drawable drawable2;
103-
private float density;
104103
private boolean autoAdjust;
105104
// private Adjuster adjuster;
106105
private Adjuster pressAdjuster;
@@ -220,7 +219,6 @@ public SuperTextView(Context context, AttributeSet attrs, int defStyleAttr,
220219
}
221220

222221
private void init(AttributeSet attrs) {
223-
density = getContext().getResources().getDisplayMetrics().density;
224222
initAttrs(attrs);
225223
paint = new Paint();
226224
initPaint();

0 commit comments

Comments
 (0)