Implemented onSaveInstanceState and onRestoreInstanceState for an EditText.