mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-06-05 17:00:23 +02:00
create the new note when appropriate
This commit is contained in:
@ -104,6 +104,7 @@ public class MainActivity extends SimpleActivity {
|
|||||||
} else if (mDb.doesTitleExist(title)) {
|
} else if (mDb.doesTitleExist(title)) {
|
||||||
Utils.showToast(getApplicationContext(), R.string.title_taken);
|
Utils.showToast(getApplicationContext(), R.string.title_taken);
|
||||||
} else {
|
} else {
|
||||||
|
mDb.insertNote(new Note(0, title, ""));
|
||||||
alertDialog.dismiss();
|
alertDialog.dismiss();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user