PageFragment: do not count URL as visited twice

main
dece 2 years ago
parent 44aa42e67d
commit f7b1b9072c

@ -157,7 +157,8 @@ class PageFragment : Fragment(), PageAdapter.Listener {
}
is PageViewModel.SuccessEvent -> {
vm.currentUrl = event.uri
vm.visitedUrls.add(event.uri)
if (vm.visitedUrls.isEmpty() || vm.visitedUrls.last() != event.uri)
vm.visitedUrls.add(event.uri)
binding.addressBar.setText(event.uri)
}
is PageViewModel.BinaryEvent -> {

Loading…
Cancel
Save