diff --git a/app/src/main/java/dev/lowrespalmtree/comet/PageFragment.kt b/app/src/main/java/dev/lowrespalmtree/comet/PageFragment.kt index a9077a6..d0717e9 100644 --- a/app/src/main/java/dev/lowrespalmtree/comet/PageFragment.kt +++ b/app/src/main/java/dev/lowrespalmtree/comet/PageFragment.kt @@ -63,7 +63,7 @@ class PageFragment : Fragment(), PageAdapter.Listener { Log.d(TAG, "onViewCreated: reuse current URL, probably fragment recreation") } else if (vm.visitedUrls.isEmpty()) { Log.d(TAG, "onViewCreated: no current URL, open home if configured") - Preferences.getHomeUrl(requireContext())?.let { openUrl(it) } + Preferences.getHomeUrl(requireContext())?.let { if (it.isNotBlank()) openUrl(it) } } }