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:
Mark Hansen
2021-10-06 04:10:36 +00:00
parent b2b2a5d03a
commit 8813394b76

View File

@@ -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();