From f18c8ddd0f466de4b2f819fbbd612949bd71c532 Mon Sep 17 00:00:00 2001 From: Romain Guy Date: Fri, 16 Sep 2011 16:16:36 -0700 Subject: [PATCH] Clarify documentation of AdapterView.OnItemSelectedListener Bug #5331587 Change-Id: Ic3d6aca573639d6cae3abb45bfe821f5fd31f1bc --- core/java/android/widget/AdapterView.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/core/java/android/widget/AdapterView.java b/core/java/android/widget/AdapterView.java index 72db8e8225f8..d9c22c49b2b9 100644 --- a/core/java/android/widget/AdapterView.java +++ b/core/java/android/widget/AdapterView.java @@ -338,8 +338,10 @@ public abstract class AdapterView extends ViewGroup { */ public interface OnItemSelectedListener { /** - * Callback method to be invoked when an item in this view has been - * selected. + *

Callback method to be invoked when an item in this view has been + * selected. This callback is invoked only when the newly selected + * position is different from the previously selected position or if + * there was no selected item.

* * Impelmenters can call getItemAtPosition(position) if they need to access the * data associated with the selected item. -- 2.11.0