Fix setText()

Fix a bug that mIsReset becomes always true after show() or hide() is called.