mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-03-16 08:30:05 +01:00
make the existing title checking incasesensitive
This commit is contained in:
parent
28ed5c654f
commit
78f6cfcbde
@ -71,7 +71,7 @@ class DBHelper private constructor(private val mContext: Context) : SQLiteOpenHe
|
||||
|
||||
fun doesTitleExist(title: String): Boolean {
|
||||
val cols = arrayOf(COL_ID)
|
||||
val selection = "$COL_TITLE = ?"
|
||||
val selection = "$COL_TITLE = ? COLLATE NOCASE"
|
||||
val selectionArgs = arrayOf(title)
|
||||
var cursor: Cursor? = null
|
||||
try {
|
||||
|
Loading…
x
Reference in New Issue
Block a user