mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-06-05 21:59:17 +02:00
make event type title checking incasesensitive
This commit is contained in:
@ -215,7 +215,7 @@ class DBHelper private constructor(val context: Context) : SQLiteOpenHelper(cont
|
|||||||
|
|
||||||
fun getEventTypeIdWithTitle(title: String): Int {
|
fun getEventTypeIdWithTitle(title: String): Int {
|
||||||
val cols = arrayOf(COL_TYPE_ID)
|
val cols = arrayOf(COL_TYPE_ID)
|
||||||
val selection = "$COL_TYPE_TITLE = ?"
|
val selection = "$COL_TYPE_TITLE = ? COLLATE NOCASE"
|
||||||
val selectionArgs = arrayOf(title)
|
val selectionArgs = arrayOf(title)
|
||||||
var cursor: Cursor? = null
|
var cursor: Cursor? = null
|
||||||
try {
|
try {
|
||||||
|
Reference in New Issue
Block a user