Fixed notes are not saving in custom app

This commit is contained in:
MohitMaliFtechiz 2023-06-01 16:09:11 +05:30 committed by Kelson
parent 8534b39dfc
commit bc86ba4e91

View File

@ -179,7 +179,7 @@ class AddNoteDialog : DialogFragment() {
* For null input or on being unable to find required text, returns null * For null input or on being unable to find required text, returns null
*/ */
private fun getTextAfterLastSlashWithoutExtension(path: String): String = private fun getTextAfterLastSlashWithoutExtension(path: String): String =
path.substringAfterLast('/', "").substringBeforeLast('.', "") path.substringAfterLast('/', "").substringBeforeLast('.')
// Override onBackPressed() to respond to user pressing 'Back' button on navigation bar // Override onBackPressed() to respond to user pressing 'Back' button on navigation bar
override fun onCreateDialog(savedInstanceState: Bundle?): Dialog { override fun onCreateDialog(savedInstanceState: Bundle?): Dialog {