Remove unnecessary method
This commit is contained in:
parent
e75ff85aba
commit
c35a97782c
1 changed files with 0 additions and 18 deletions
|
@ -350,21 +350,6 @@ public class OsmandTextViewFieldBoxes extends FrameLayout {
|
||||||
this.activated = true;
|
this.activated = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void makeCursorBlink() {
|
|
||||||
int cursorPos = this.inputText.getSelectionStart();
|
|
||||||
if(cursorPos == 0) {
|
|
||||||
if(this.inputText.getText().toString().isEmpty()) {
|
|
||||||
if(this.onError) {
|
|
||||||
this.doNotRemoveError = true;
|
|
||||||
this.inputText.setText(" ");
|
|
||||||
this.inputText.setText("");
|
|
||||||
this.doNotRemoveError = false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
protected void setHighlightColor(int colorRes) {
|
protected void setHighlightColor(int colorRes) {
|
||||||
this.floatingLabel.setTextColor(colorRes);
|
this.floatingLabel.setTextColor(colorRes);
|
||||||
setCursorDrawableColor(this.inputText, colorRes);
|
setCursorDrawableColor(this.inputText, colorRes);
|
||||||
|
@ -460,8 +445,6 @@ public class OsmandTextViewFieldBoxes extends FrameLayout {
|
||||||
if(giveFocus) {
|
if(giveFocus) {
|
||||||
this.setHasFocus(true);
|
this.setHasFocus(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
this.makeCursorBlink();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -615,7 +598,6 @@ public class OsmandTextViewFieldBoxes extends FrameLayout {
|
||||||
if(this.hasFocus) {
|
if(this.hasFocus) {
|
||||||
this.activate(true);
|
this.activate(true);
|
||||||
this.inputText.requestFocus();
|
this.inputText.requestFocus();
|
||||||
this.makeCursorBlink();
|
|
||||||
if(!this.onError && this.enabled) {
|
if(!this.onError && this.enabled) {
|
||||||
this.setHighlightColor(this.primaryColor);
|
this.setHighlightColor(this.primaryColor);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue