Android GUI: Fix bug where the free space fragment is not hidden when switching to another fragment