Avoid double-calling super.getText() in EditText.getText()
Just a small cleanup. TextView.getText() looks like it has some logic we might not want to repeat. Change-Id: I364458d979275ad5dff24983e4ee2b9469f91155
This commit is contained in:
@@ -110,7 +110,7 @@ public class EditText extends TextView {
|
||||
return null;
|
||||
}
|
||||
if (text instanceof Editable) {
|
||||
return (Editable) super.getText();
|
||||
return (Editable) text;
|
||||
}
|
||||
super.setText(text, BufferType.EDITABLE);
|
||||
return (Editable) super.getText();
|
||||
|
||||
Reference in New Issue
Block a user