create the new note when appropriate

This commit is contained in:
tibbi 2016-10-01 19:55:39 +02:00
parent eebab76151
commit 307e2a4eb1

View File

@ -104,6 +104,7 @@ public class MainActivity extends SimpleActivity {
} else if (mDb.doesTitleExist(title)) {
Utils.showToast(getApplicationContext(), R.string.title_taken);
} else {
mDb.insertNote(new Note(0, title, ""));
alertDialog.dismiss();
}
}