OSDN Git Service

Use clearFocus() when entering touch mode
authorAlan Viverette <alanv@google.com>
Wed, 24 Jul 2013 22:49:23 +0000 (15:49 -0700)
committerAlan Viverette <alanv@google.com>
Wed, 24 Jul 2013 22:49:23 +0000 (15:49 -0700)
commited7821a60ca80197384b2a4678b6c4ea307457e6
treea0b0012b595c63e42ef530990719a9a44f739258
parent616dfe37f5a1f67f97d151f0fbefa4020ddfdec6
Use clearFocus() when entering touch mode

Calling unFocus() leaves the view hierarchy in an inconsistent
state. This is okay in ViewGroup, where the state is manually
updated, but causes issues in ViewRootImpl.

BUG: 9983358
Change-Id: Id63e62962d895e6bd4f816f202dcf77254ceab4e
core/java/android/view/View.java
core/java/android/view/ViewRootImpl.java