removing a weird helper function

This commit is contained in:
tibbi committed 2018-11-07 17:10:00 +01:00
1 parent 54fa5096ee
commit 32837ebb38
2 files changed
+1 -3

No files matched your search

@@ -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)