Fixed anonymous class implementation from MaterialSimpleListAdapter.Callback interface (#109)

This commit is contained in:
Lewis Nelson 2019-02-28 15:44:15 +00:00 committed by Noitidart
parent 72080ce719
commit c66031d1fe
1 changed files with 1 additions and 1 deletions

View File

@ -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());