mirror of
https://github.com/status-im/react-native-dialogs.git
synced 2026-08-31 11:11:08 +00:00
Fix crash when not selecting a option with itemsCallbackSingleChoice
Fix problem with crash when not selecting a option with itemsCallbackSingleChoice.
This commit is contained in:
committed by
Vojtech Novak
parent
33e463d523
commit
40bfea058e
@@ -225,6 +225,7 @@ public class DialogAndroid extends ReactContextBaseJavaModule {
|
||||
@Override
|
||||
public boolean onSelection(MaterialDialog materialDialog, View view, int i,
|
||||
CharSequence charSequence) {
|
||||
charSequence = charSequence == null ? "" : charSequence;
|
||||
callback.invoke("itemsCallbackSingleChoice", i, charSequence.toString());
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user