make event type title checking incasesensitive

This commit is contained in:
tibbi 2017-03-05 11:15:30 +01:00
parent e2ed197e87
commit 848c084a68

View file

@ -215,7 +215,7 @@ class DBHelper private constructor(val context: Context) : SQLiteOpenHelper(cont
fun getEventTypeIdWithTitle(title: String): Int {
val cols = arrayOf(COL_TYPE_ID)
val selection = "$COL_TYPE_TITLE = ?"
val selection = "$COL_TYPE_TITLE = ? COLLATE NOCASE"
val selectionArgs = arrayOf(title)
var cursor: Cursor? = null
try {