From 32e0eea57245485dca75f496534fb63039dd2c3d Mon Sep 17 00:00:00 2001 From: mueller-ma Date: Thu, 7 Mar 2024 17:33:47 +0100 Subject: [PATCH] Fix empty drawer when no Sitemaps are configured Signed-off-by: mueller-ma --- mobile/src/main/java/org/openhab/habdroid/ui/MainActivity.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mobile/src/main/java/org/openhab/habdroid/ui/MainActivity.kt b/mobile/src/main/java/org/openhab/habdroid/ui/MainActivity.kt index dd6bd747f7..8673ed8542 100644 --- a/mobile/src/main/java/org/openhab/habdroid/ui/MainActivity.kt +++ b/mobile/src/main/java/org/openhab/habdroid/ui/MainActivity.kt @@ -747,7 +747,7 @@ class MainActivity : AbstractBaseActivity(), ConnectionFactory.UpdateListener { when (result) { is ServerProperties.Companion.PropsSuccess -> { serverProperties = result.props - updateSitemapDrawerEntries() + updateDrawerServerEntries() if (result.props.sitemaps.isEmpty()) { Log.e(TAG, "openHAB returned empty Sitemap list") controller.indicateServerCommunicationFailure(getString(R.string.error_empty_sitemap_list))