Fix app mode selection in top widget

This commit is contained in:
vshcherb 2014-02-26 22:12:28 +01:00
parent c7e764239b
commit 72f846ca75

View file

@ -419,7 +419,7 @@ public class MapInfoLayer extends OsmandMapLayer {
View confirmDialog = view.inflate(view.getContext(), R.layout.configuration_dialog, null); View confirmDialog = view.inflate(view.getContext(), R.layout.configuration_dialog, null);
final ListView lv = (ListView) confirmDialog.findViewById(android.R.id.list); final ListView lv = (ListView) confirmDialog.findViewById(android.R.id.list);
NavigateAction.prepareAppModeView(map, selected, true, NavigateAction.prepareAppModeView(map, selected, true,
(ViewGroup) confirmDialog.findViewById(R.id.TopBar), false, (ViewGroup) confirmDialog.findViewById(R.id.TopBar), true,
new View.OnClickListener() { new View.OnClickListener() {
@Override @Override
public void onClick(View v) { public void onClick(View v) {