mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-04-13 15:02:05 +02:00
removing a weird helper function
This commit is contained in:
parent
54fa5096ee
commit
32837ebb38
@ -235,7 +235,7 @@ class MainActivity : SimpleActivity() {
|
||||
private fun handleUri(uri: Uri) {
|
||||
val id = dbHelper.getNoteId(uri.path)
|
||||
|
||||
if (dbHelper.isValidId(id)) {
|
||||
if (id > 0) {
|
||||
updateSelectedNote(id)
|
||||
return
|
||||
}
|
||||
|
@ -182,8 +182,6 @@ class DBHelper private constructor(private val mContext: Context) : SQLiteOpenHe
|
||||
mDb.update(NOTES_TABLE_NAME, values, selection, selectionArgs)
|
||||
}
|
||||
|
||||
fun isValidId(id: Int) = id > 0
|
||||
|
||||
fun getWidgets(): ArrayList<Widget> {
|
||||
val widgets = ArrayList<Widget>()
|
||||
val cols = arrayOf(COL_WIDGET_ID, COL_NOTE_ID)
|
||||
|
Loading…
x
Reference in New Issue
Block a user