Hided updates when there's nothing to update

This commit is contained in:
Denis 2014-12-04 17:32:43 +02:00
parent 9ea7e55ffd
commit 750580cb31

View file

@ -80,7 +80,10 @@ public class DashUpdatesFragment extends DashBaseFragment {
updates.removeAllViews(); updates.removeAllViews();
if (list.size() < 1) { if (list.size() < 1) {
mainView.findViewById(R.id.maps).setVisibility(View.GONE);
return; return;
} else {
mainView.findViewById(R.id.maps).setVisibility(View.VISIBLE);
} }
for (int i = 0; i < list.size(); i++) { for (int i = 0; i < list.size(); i++) {