Merge "Fix error overwriting when restoring error"

This commit is contained in:
Alan Viverette
2014-11-21 20:40:28 +00:00
committed by Gerrit Code Review

View File

@@ -3809,8 +3809,10 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
// Display the error later, after the first layout pass // Display the error later, after the first layout pass
post(new Runnable() { post(new Runnable() {
public void run() { public void run() {
if (mEditor == null || !mEditor.mErrorWasChanged) {
setError(error); setError(error);
} }
}
}); });
} }
} }