Merge "Fix bug 5143751 - cts errors in android.app.cts.AlertDialog_BuilderTest"
This commit is contained in:
@@ -277,10 +277,11 @@ public abstract class AdapterView<T extends Adapter> extends ViewGroup {
|
|||||||
* called, false otherwise is returned.
|
* called, false otherwise is returned.
|
||||||
*/
|
*/
|
||||||
public boolean performItemClick(View view, int position, long id) {
|
public boolean performItemClick(View view, int position, long id) {
|
||||||
view.sendAccessibilityEvent(AccessibilityEvent.TYPE_VIEW_CLICKED);
|
|
||||||
|
|
||||||
if (mOnItemClickListener != null) {
|
if (mOnItemClickListener != null) {
|
||||||
playSoundEffect(SoundEffectConstants.CLICK);
|
playSoundEffect(SoundEffectConstants.CLICK);
|
||||||
|
if (view != null) {
|
||||||
|
view.sendAccessibilityEvent(AccessibilityEvent.TYPE_VIEW_CLICKED);
|
||||||
|
}
|
||||||
mOnItemClickListener.onItemClick(this, view, position, id);
|
mOnItemClickListener.onItemClick(this, view, position, id);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user