Skip to content

Commit

Permalink
Fix empty drawer when no Sitemaps are configured
Browse files Browse the repository at this point in the history
Signed-off-by: mueller-ma <[email protected]>
  • Loading branch information
mueller-ma committed Mar 7, 2024
1 parent 9509130 commit 32e0eea
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 32e0eea

Please sign in to comment.