From c66031d1fe3acf8dfe0fe9b461e410c9980304f0 Mon Sep 17 00:00:00 2001 From: Lewis Nelson Date: Thu, 28 Feb 2019 15:44:15 +0000 Subject: [PATCH] Fixed anonymous class implementation from MaterialSimpleListAdapter.Callback interface (#109) --- .../com/aakashns/reactnativedialogs/modules/DialogAndroid.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/src/main/java/com/aakashns/reactnativedialogs/modules/DialogAndroid.java b/android/src/main/java/com/aakashns/reactnativedialogs/modules/DialogAndroid.java index 26ac013..4ecd44e 100644 --- a/android/src/main/java/com/aakashns/reactnativedialogs/modules/DialogAndroid.java +++ b/android/src/main/java/com/aakashns/reactnativedialogs/modules/DialogAndroid.java @@ -464,7 +464,7 @@ public class DialogAndroid extends ReactContextBaseJavaModule { public void list(ReadableMap options, final Callback callback) { final MaterialSimpleListAdapter simpleListAdapter = new MaterialSimpleListAdapter(new MaterialSimpleListAdapter.Callback() { @Override - public void onMaterialListItemSelected(MaterialDialog dialog, int index, MaterialSimpleListItem item) { + public void onMaterialListItemSelected(int index, MaterialSimpleListItem item) { if (!mCallbackConsumed) { mCallbackConsumed = true; callback.invoke(index, item.getContent());