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) {
|
public void list(ReadableMap options, final Callback callback) {
|
||||||
final MaterialSimpleListAdapter simpleListAdapter = new MaterialSimpleListAdapter(new MaterialSimpleListAdapter.Callback() {
|
final MaterialSimpleListAdapter simpleListAdapter = new MaterialSimpleListAdapter(new MaterialSimpleListAdapter.Callback() {
|
||||||
@Override
|
@Override
|
||||||
public void onMaterialListItemSelected(MaterialDialog dialog, int index, MaterialSimpleListItem item) {
|
public void onMaterialListItemSelected(int index, MaterialSimpleListItem item) {
|
||||||
if (!mCallbackConsumed) {
|
if (!mCallbackConsumed) {
|
||||||
mCallbackConsumed = true;
|
mCallbackConsumed = true;
|
||||||
callback.invoke(index, item.getContent());
|
callback.invoke(index, item.getContent());
|
||||||
|
|
Loading…
Reference in New Issue