Merge "Avoid double-calling super.getText() in EditText.getText()"
This commit is contained in:
committed by
Android (Google) Code Review
commit
592002ca3d
@@ -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