From 78f6cfcbdeab1ed5755b667ad48b28958739a897 Mon Sep 17 00:00:00 2001 From: tibbi Date: Tue, 7 Mar 2017 20:30:03 +0100 Subject: [PATCH] make the existing title checking incasesensitive --- .../main/kotlin/com/simplemobiletools/notes/helpers/DBHelper.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/notes/helpers/DBHelper.kt b/app/src/main/kotlin/com/simplemobiletools/notes/helpers/DBHelper.kt index 14886ce7..466ec15e 100644 --- a/app/src/main/kotlin/com/simplemobiletools/notes/helpers/DBHelper.kt +++ b/app/src/main/kotlin/com/simplemobiletools/notes/helpers/DBHelper.kt @@ -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 {