Re-initialize error after attach

If flag for error after attach is not reinitialized, it may cause
NullPointerException on subsequent onAttachedWindow if error text
was reset to null.

Change-Id: I8976c28a6ca71017e5c4b3f29d4eeeb2eda48c38
This commit is contained in:
Daniel 2 Olofsson
2013-08-13 10:30:26 +02:00
committed by Raph Levien
parent eb95e74e21
commit 09421fab07

View File

@@ -317,7 +317,7 @@ public class Editor {
mErrorPopup = null;
}
mShowErrorAfterAttach = false;
} else {
setErrorIcon(icon);
if (mTextView.isFocused()) {