mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-06-05 17:00:23 +02:00
add some Cursor extension functions
This commit is contained in:
@ -0,0 +1,7 @@
|
||||
package com.simplemobiletools.notes.extensions
|
||||
|
||||
import android.database.Cursor
|
||||
|
||||
fun Cursor.getStringValue(key: String) = getString(getColumnIndex(key))
|
||||
|
||||
fun Cursor.getIntValue(key: String) = getInt(getColumnIndex(key))
|
Reference in New Issue
Block a user