From 548513a9599d4e86f1bfa2bd4e7c3201ad6841fa Mon Sep 17 00:00:00 2001 From: mueller-ma Date: Thu, 27 Jun 2024 18:52:54 +0200 Subject: [PATCH] Avoid flicker when opening drawer Update Sitemaps in drawer when they are fetched. This avoids the flicker when the drawer is opened, because no update happens then (at least if there are no new Sitemaps on the server). Signed-off-by: mueller-ma --- mobile/src/main/java/org/openhab/habdroid/ui/MainActivity.kt | 1 + 1 file changed, 1 insertion(+) 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 367a8b18a1..d88e11f01f 100644 --- a/mobile/src/main/java/org/openhab/habdroid/ui/MainActivity.kt +++ b/mobile/src/main/java/org/openhab/habdroid/ui/MainActivity.kt @@ -768,6 +768,7 @@ class MainActivity : AbstractBaseActivity(), ConnectionFactory.UpdateListener { } } else { chooseSitemap() + updateSitemapDrawerEntries() } if (connection !is DemoConnection) { prefs.edit {