Fixed anonymous class implementation from MaterialSimpleListAdapter.Callback interface (#109)
This commit is contained in:
parent
72080ce719
commit
c66031d1fe
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue