We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f62dab3 commit 9f7b46aCopy full SHA for 9f7b46a
library/src/main/java/com/coorchice/library/SuperTextView.java
@@ -369,7 +369,7 @@ public void invalidateDrawable(Drawable drawable) {
369
370
@Override
371
protected void onDraw(Canvas canvas) {
372
- if (getVisibility() != VISIBLE || !isAttachedToWindow() || getWidth() < 0 || getHeight() < 0)
+ if (getVisibility() != VISIBLE || !isAttachedToWindow() || getWidth() <= 0 || getHeight() <= 0)
373
return;
374
long startDrawTime = System.currentTimeMillis();
375
Tracker.notifyEvent(tracker, TimeEvent.create(Event.OnDrawStart, startDrawTime));
0 commit comments