make the existing title checking incasesensitive

This commit is contained in:
tibbi 2017-03-07 20:30:03 +01:00
parent 28ed5c654f
commit 78f6cfcbde
1 changed files with 1 additions and 1 deletions

View File

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