Commit 89a489aa authored by Varun Patil's avatar Varun Patil

fix(map): Hide inside tab when nothing inside

parent 878c6d58
......@@ -660,6 +660,14 @@ public class MapFragment extends Fragment implements TextWatcher,
parent);
View headerLayout = childrenView.findViewById(R.id.header_layout);
/* Skip if we have no children */
if (building.children.length == 0) {
headerLayout.setVisibility(View.GONE);
return;
}
headerLayout.setVisibility(View.VISIBLE);
TextView headerName = (TextView) childrenView
.findViewById(R.id.list_header);
String headerText = "Inside ";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment