diff --git a/app/src/main/java/dev/lowrespalmtree/comet/PageFragment.kt b/app/src/main/java/dev/lowrespalmtree/comet/PageFragment.kt index 6cb6a64..7ad0e44 100644 --- a/app/src/main/java/dev/lowrespalmtree/comet/PageFragment.kt +++ b/app/src/main/java/dev/lowrespalmtree/comet/PageFragment.kt @@ -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 -> {