Merge pull request #4222 from osmandapp/hide_mapillary_quick_actions

Hide mapillary when quick actions in clicked
This commit is contained in:
Alexey 2017-07-28 12:32:04 +03:00 committed by GitHub
commit 7fa889b06f

View file

@ -80,9 +80,11 @@ public class MapQuickActionLayer extends OsmandMapLayer implements QuickActionRe
quickActionButton.setOnClickListener(new View.OnClickListener() { quickActionButton.setOnClickListener(new View.OnClickListener() {
@Override @Override
public void onClick(View v) { public void onClick(View v) {
if (!showTutorialIfNeeded()) mapActivity.dismissCardDialog();
if (!showTutorialIfNeeded()) {
setLayerState(!isWidgetVisible()); setLayerState(!isWidgetVisible());
} }
}
}); });
Context context = view.getContext(); Context context = view.getContext();