Skip to content

Commit

Permalink
Rename hasClearButton() to isShowClearButton().
Browse files Browse the repository at this point in the history
  • Loading branch information
rengwuxian committed Mar 29, 2015
1 parent 1cb38ee commit 44e7587
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -509,15 +509,15 @@ public void setIconRight(Bitmap bitmap) {
initPadding();
}

public boolean isShowClearButton() {
return showClearButton;
}

public void setShowClearButton(boolean show) {
showClearButton = show;
correctPaddings();
}

public boolean hasClearButton() {
return showClearButton;
}

private Bitmap[] generateIconBitmaps(@DrawableRes int origin) {
if (origin == -1) {
return null;
Expand Down Expand Up @@ -766,7 +766,7 @@ private void correctPaddings() {
}

private int getButtonsCount() {
return hasClearButton() ? 1 : 0;
return isShowClearButton() ? 1 : 0;
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -509,15 +509,15 @@ public void setIconRight(Bitmap bitmap) {
initPadding();
}

public boolean isShowClearButton() {
return showClearButton;
}

public void setShowClearButton(boolean show) {
showClearButton = show;
correctPaddings();
}

public boolean hasClearButton() {
return showClearButton;
}

private Bitmap[] generateIconBitmaps(@DrawableRes int origin) {
if (origin == -1) {
return null;
Expand Down Expand Up @@ -766,7 +766,7 @@ private void correctPaddings() {
}

private int getButtonsCount() {
return hasClearButton() ? 1 : 0;
return isShowClearButton() ? 1 : 0;
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -506,15 +506,15 @@ public void setIconRight(Bitmap bitmap) {
initPadding();
}

public boolean isShowClearButton() {
return showClearButton;
}

public void setShowClearButton(boolean show) {
showClearButton = show;
correctPaddings();
}

public boolean hasClearButton() {
return showClearButton;
}

private Bitmap[] generateIconBitmaps(@DrawableRes int origin) {
if (origin == -1) {
return null;
Expand Down Expand Up @@ -763,7 +763,7 @@ private void correctPaddings() {
}

private int getButtonsCount() {
return hasClearButton() ? 1 : 0;
return isShowClearButton() ? 1 : 0;
}

@Override
Expand Down

0 comments on commit 44e7587

Please sign in to comment.