PageFragment: fix issue with empty home URL

This commit is contained in:
dece 2022-02-17 17:56:41 +01:00
parent d9802dc44d
commit 2f2a70040f

View file

@ -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) }
}
}