Merge "Avoid double-calling super.getText() in EditText.getText()"

This commit is contained in:
Aurimas Liutikas
2021-10-06 16:50:43 +00:00
committed by Android (Google) Code Review

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