mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-04-19 17:57:27 +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) {
|
private fun handleUri(uri: Uri) {
|
||||||
val id = dbHelper.getNoteId(uri.path)
|
val id = dbHelper.getNoteId(uri.path)
|
||||||
|
|
||||||
if (dbHelper.isValidId(id)) {
|
if (id > 0) {
|
||||||
updateSelectedNote(id)
|
updateSelectedNote(id)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
@ -182,8 +182,6 @@ class DBHelper private constructor(private val mContext: Context) : SQLiteOpenHe
|
|||||||
mDb.update(NOTES_TABLE_NAME, values, selection, selectionArgs)
|
mDb.update(NOTES_TABLE_NAME, values, selection, selectionArgs)
|
||||||
}
|
}
|
||||||
|
|
||||||
fun isValidId(id: Int) = id > 0
|
|
||||||
|
|
||||||
fun getWidgets(): ArrayList<Widget> {
|
fun getWidgets(): ArrayList<Widget> {
|
||||||
val widgets = ArrayList<Widget>()
|
val widgets = ArrayList<Widget>()
|
||||||
val cols = arrayOf(COL_WIDGET_ID, COL_NOTE_ID)
|
val cols = arrayOf(COL_WIDGET_ID, COL_NOTE_ID)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user