Update DialogAndroid.java

This commit is contained in:
Anthony Ou 2016-03-18 11:47:03 -06:00
parent 7ee0b7ac87
commit 7c51e1bab6
1 changed files with 1 additions and 1 deletions

View File

@ -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) {