Skip to content
Snippets Groups Projects
Commit fddf4faa authored by maniac103's avatar maniac103 Committed by mueller-ma
Browse files

Don't update sitemap drawer items in activity's onCreate(). (#988)


They're already correctly handled via onStart() ->
onAvailableConnectionChanged(). As that path also correctly clears the
sitemap list if there's no available connection, there's no reason to
also do the update via onCreate().

Signed-off-by: default avatarDanny Baumann <dannybaumann@web.de>
parent 1f51f47d
Branches
No related tags found
No related merge requests found
...@@ -252,7 +252,6 @@ public class OpenHABMainActivity extends AppCompatActivity implements ...@@ -252,7 +252,6 @@ public class OpenHABMainActivity extends AppCompatActivity implements
// via the fragment state restoration. // via the fragment state restoration.
mController.recreateFragmentState(); mController.recreateFragmentState();
} }
updateSitemapDrawerItems();
if (savedInstanceState.getBoolean("isSitemapSelectionDialogShown")) { if (savedInstanceState.getBoolean("isSitemapSelectionDialogShown")) {
showSitemapSelectionDialog(); showSitemapSelectionDialog();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment