PageFragment: do not count URL as visited twice
This commit is contained in:
parent
44aa42e67d
commit
f7b1b9072c
|
@ -157,6 +157,7 @@ class PageFragment : Fragment(), PageAdapter.Listener {
|
|||
}
|
||||
is PageViewModel.SuccessEvent -> {
|
||||
vm.currentUrl = event.uri
|
||||
if (vm.visitedUrls.isEmpty() || vm.visitedUrls.last() != event.uri)
|
||||
vm.visitedUrls.add(event.uri)
|
||||
binding.addressBar.setText(event.uri)
|
||||
}
|
||||
|
|
Reference in a new issue