Skip to content

Commit

Permalink
Draw the bottom ellipsis with error color when isInternalValid() retu…
Browse files Browse the repository at this point in the history
…rns false.
  • Loading branch information
rengwuxian committed Apr 28, 2015
1 parent ca08c38 commit 99a0c87
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1385,7 +1385,7 @@ protected void onDraw(@NonNull Canvas canvas) {

// draw the bottom ellipsis
if (hasFocus() && singleLineEllipsis && getScrollX() != 0) {
paint.setColor(primaryColor);
paint.setColor(isInternalValid() ? primaryColor : errorColor);
float startY = lineStartY + bottomSpacing;
int ellipsisStartX;
if (isRTL()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1385,7 +1385,7 @@ protected void onDraw(@NonNull Canvas canvas) {

// draw the bottom ellipsis
if (hasFocus() && singleLineEllipsis && getScrollX() != 0) {
paint.setColor(primaryColor);
paint.setColor(isInternalValid() ? primaryColor : errorColor);
float startY = lineStartY + bottomSpacing;
int ellipsisStartX;
if (isRTL()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1382,7 +1382,7 @@ protected void onDraw(@NonNull Canvas canvas) {

// draw the bottom ellipsis
if (hasFocus() && singleLineEllipsis && getScrollX() != 0) {
paint.setColor(primaryColor);
paint.setColor(isInternalValid() ? primaryColor : errorColor);
float startY = lineStartY + bottomSpacing;
int ellipsisStartX;
if (isRTL()) {
Expand Down

0 comments on commit 99a0c87

Please sign in to comment.