Skip to content

Commit

Permalink
Fix #480 (crash with bookmark labels)
Browse files Browse the repository at this point in the history
  • Loading branch information
tuomas2 committed Dec 26, 2019
1 parent 774c207 commit 508e888
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ class BookmarkDBAdapter {
val newValues = ContentValues()
newValues.put(LabelColumn.NAME, label.name)
newValues.put(LabelColumn.BOOKMARK_STYLE, label.bookmarkStyleAsString)
val newId = db.update(BookmarkDatabaseDefinition.Table.LABEL, CONFLICT_FAIL, newValues, "_id=?", arrayOf(label.id.toString())).toLong()
return getLabelDto(newId)!!
db.update(BookmarkDatabaseDefinition.Table.LABEL, CONFLICT_FAIL, newValues, "_id=?", arrayOf(label.id.toString())).toLong()
return label
}

fun removeBookmarkLabelJoin(bookmark: BookmarkDto, label: LabelDto): Boolean {
Expand Down

0 comments on commit 508e888

Please sign in to comment.