Closes #3701 - When deleted use bookmark title if url is null in snackbar (#3716)

This commit is contained in:
Emily Kager 2019-06-27 11:39:00 -07:00 committed by Colin Lee
parent 13df8d7ddd
commit c9962a7ad0

View File

@ -307,7 +307,7 @@ class BookmarkFragment : Fragment(), BackHandler, AccountObserver {
view!!,
getString(
R.string.bookmark_deletion_snackbar_message,
bookmarkNode.url?.urlToTrimmedHost(context!!)
bookmarkNode.url?.urlToTrimmedHost(context!!) ?: bookmarkNode.title
),
getString(R.string.bookmark_undo_deletion),
onCancel = {