mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-03-03 02:47:44 +01:00
make event type title checking incasesensitive
This commit is contained in:
parent
e2ed197e87
commit
848c084a68
@ -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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user