Tidy up TextInputLayout.setError()

Turns out that there is an issue if you call
setErrorEnabled() with a previously set non-null
error. This CL fixes this.

Also added tests to test it works.

Change-Id: I24db8724d1e76ef3d05a8cc297a972ec814e62d0
7 files changed