removing a weird helper function

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

View File

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

View File

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