You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
method public static <ITEM> void onItemClick(android.widget.AdapterView<?>, kotlin.jvm.functions.Function1<? super ITEM,kotlin.Unit> onItemClick);
659
-
method public static <ITEM> void onItemLongClick(android.widget.AdapterView<?>, kotlin.jvm.functions.Function1<? super ITEM,java.lang.Boolean> onItemLongClick);
658
+
method public static <T> void onItemClick(android.widget.AdapterView<?>, kotlin.jvm.functions.Function1<? super T,kotlin.Unit> onItemClick);
659
+
method public static <T> void onItemLongClick(android.widget.AdapterView<?>, kotlin.jvm.functions.Function1<? super T,java.lang.Boolean> onItemLongClick);
660
660
method public static void onItemSelected(android.widget.AdapterView<?>, kotlin.jvm.functions.Function1<? super android.widget.AdapterView<?>,kotlin.Unit> onNothingSelected = "{}", kotlin.jvm.functions.Function4<? super android.widget.AdapterView<?>,? super android.view.View,? super java.lang.Integer,? super java.lang.Long,kotlin.Unit> onItemSelected);
661
-
method public static <ITEM> void onItemSelected(android.widget.AdapterView<?>, kotlin.jvm.functions.Function0<kotlin.Unit> onNothingSelected = "{}", kotlin.jvm.functions.Function1<? super ITEM,kotlin.Unit> onItemSelected);
661
+
method public static <T> void onItemSelected(android.widget.AdapterView<?>, kotlin.jvm.functions.Function0<kotlin.Unit> onNothingSelected = "{}", kotlin.jvm.functions.Function1<? super T,kotlin.Unit> onItemSelected);
// borrowed from https://android.googlesource.com/platform/cts/+/master/tests/tests/widget/src/android/widget/cts/AdapterViewTest.java#255
84
+
/**
85
+
* borrowed from [AdapterViewTest line:279](https://android.googlesource.com/platform/cts/+/42fbcbb2518ea10cc729c44614a93b182bf58696/tests/tests/widget/src/android/widget/cts/AdapterViewTest.java#279)
* workaround for using ActivityRule like here: https://android.googlesource.com/platform/cts/+/master/tests/tests/widget/src/android/widget/cts/AdapterViewTest.java#286
* Reflection used to shortcut trigger selection via AdapterView#fireOnSelected()
193
+
*
194
+
* More comprehensive test would involve ActivityRule like in [AdapterViewTest line:286](https://android.googlesource.com/platform/cts/+/42fbcbb2518ea10cc729c44614a93b182bf58696/tests/tests/widget/src/android/widget/cts/AdapterViewTest.java#286)
0 commit comments