am ba4bbe79: am 6f1edae8: Merge "Send VIEW_SELECTED event when View selection state changes" into lmp-mr1-dev
* commit 'ba4bbe79c2610bd4c0525837ad6654e0e36fd32d': Send VIEW_SELECTED event when View selection state changes
This commit is contained in:
@@ -16617,8 +16617,12 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
|
||||
invalidate(true);
|
||||
refreshDrawableState();
|
||||
dispatchSetSelected(selected);
|
||||
notifyViewAccessibilityStateChangedIfNeeded(
|
||||
AccessibilityEvent.CONTENT_CHANGE_TYPE_UNDEFINED);
|
||||
if (selected) {
|
||||
sendAccessibilityEvent(AccessibilityEvent.TYPE_VIEW_SELECTED);
|
||||
} else {
|
||||
notifyViewAccessibilityStateChangedIfNeeded(
|
||||
AccessibilityEvent.CONTENT_CHANGE_TYPE_UNDEFINED);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user