Merge pull request #5173 from osmandapp/MultiSelectionMenuFix

Fix #5149
This commit is contained in:
Alexander Sytnyk 2018-03-27 18:41:37 +03:00 committed by GitHub
commit b1e84d6689
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -61,7 +61,6 @@ public class MapMultiSelectionMenuFragment extends Fragment implements MultiSele
}
listAdapter = createAdapter();
listAdapter.setListener(this);
listView.setAdapter(listAdapter);
if (!menu.isLandscapeLayout()) {
final Context context = getContext();
@ -141,7 +140,7 @@ public class MapMultiSelectionMenuFragment extends Fragment implements MultiSele
}
});
}
listView.setAdapter(listAdapter);
View headerView = inflater.inflate(R.layout.menu_obj_selection_header, listView, false);
if (!menu.isLandscapeLayout()) {
AndroidUtils.setBackground(getContext(), headerView, !menu.isLight(), R.color.ctx_menu_bg_light, R.color.ctx_menu_bg_dark);