Update DialogAndroid.java
This commit is contained in:
parent
7ee0b7ac87
commit
7c51e1bab6
|
@ -305,7 +305,7 @@ public class DialogAndroid extends ReactContextBaseJavaModule {
|
|||
}
|
||||
|
||||
final MaterialDialog.Builder adapter = new MaterialDialog.Builder(getCurrentActivity())
|
||||
.title(options.getString("title"))
|
||||
.title(options.hasKey("title") ? options.getString("title") : "")
|
||||
.adapter(simpleListAdapter, new MaterialDialog.ListCallback() {
|
||||
@Override
|
||||
public void onSelection(MaterialDialog dialog, View itemView, int which, CharSequence text) {
|
||||
|
|
Loading…
Reference in New Issue