Merge pull request #5173 from osmandapp/MultiSelectionMenuFix
Fix #5149
This commit is contained in:
commit
b1e84d6689
1 changed files with 1 additions and 2 deletions
|
@ -61,7 +61,6 @@ public class MapMultiSelectionMenuFragment extends Fragment implements MultiSele
|
||||||
}
|
}
|
||||||
listAdapter = createAdapter();
|
listAdapter = createAdapter();
|
||||||
listAdapter.setListener(this);
|
listAdapter.setListener(this);
|
||||||
listView.setAdapter(listAdapter);
|
|
||||||
|
|
||||||
if (!menu.isLandscapeLayout()) {
|
if (!menu.isLandscapeLayout()) {
|
||||||
final Context context = getContext();
|
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);
|
View headerView = inflater.inflate(R.layout.menu_obj_selection_header, listView, false);
|
||||||
if (!menu.isLandscapeLayout()) {
|
if (!menu.isLandscapeLayout()) {
|
||||||
AndroidUtils.setBackground(getContext(), headerView, !menu.isLight(), R.color.ctx_menu_bg_light, R.color.ctx_menu_bg_dark);
|
AndroidUtils.setBackground(getContext(), headerView, !menu.isLight(), R.color.ctx_menu_bg_light, R.color.ctx_menu_bg_dark);
|
||||||
|
|
Loading…
Reference in a new issue