am 6d1e4522: am d9f53c02: Merge "Clear accessibility focus when view becomes invisible" into klp-dev

* commit '6d1e4522e38b18ec19b1dc184f49808b66219bef':
  Clear accessibility focus when view becomes invisible
This commit is contained in:
Alan Viverette
2013-10-09 13:34:28 -07:00
committed by Android Git Automerger

View File

@@ -8895,10 +8895,10 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
*/
mPrivateFlags |= PFLAG_DRAWN;
if (((mViewFlags & VISIBILITY_MASK) == INVISIBLE) && hasFocus()) {
if (((mViewFlags & VISIBILITY_MASK) == INVISIBLE)) {
// root view becoming invisible shouldn't clear focus and accessibility focus
if (getRootView() != this) {
clearFocus();
if (hasFocus()) clearFocus();
clearAccessibilityFocus();
}
}