@Override protected void onResume() { super.onResume(); support.onResume(); // workaround for a strange bug: if you go to second level in the HieraticalHostListView, // then open the Preferences-Activity and close it again, the 2 lists will show overlapped. HieraticalHostListView hlv = (HieraticalHostListView) findViewById(R.id.hosts_status); if (hlv != null) { hlv.setDisplayedChild(0); } hlv = (HieraticalHostListView) findViewById(R.id.hosts_checks); if (hlv != null) { hlv.setDisplayedChild(0); } ViewFlipper vf_screens = (ViewFlipper) findViewById(R.id.view_switcher_screens); if (vf_screens != null) { vf_screens.setDisplayedChild(0); } }