From d0bd7db2939d3de8ecf7eb1d76d00f444ac66510 Mon Sep 17 00:00:00 2001 From: Chumva Date: Wed, 28 Mar 2018 17:58:28 +0300 Subject: [PATCH] delete actionBarContainer if api<18 --- OsmAnd/res/layout/fragment_direction_indication_dialog.xml | 1 + .../plus/mapmarkers/DirectionIndicationDialogFragment.java | 2 ++ 2 files changed, 3 insertions(+) diff --git a/OsmAnd/res/layout/fragment_direction_indication_dialog.xml b/OsmAnd/res/layout/fragment_direction_indication_dialog.xml index c66311cb24..1e32cbe882 100644 --- a/OsmAnd/res/layout/fragment_direction_indication_dialog.xml +++ b/OsmAnd/res/layout/fragment_direction_indication_dialog.xml @@ -69,6 +69,7 @@ android:orientation="vertical"> diff --git a/OsmAnd/src/net/osmand/plus/mapmarkers/DirectionIndicationDialogFragment.java b/OsmAnd/src/net/osmand/plus/mapmarkers/DirectionIndicationDialogFragment.java index 9301309732..ce5e29c4a5 100644 --- a/OsmAnd/src/net/osmand/plus/mapmarkers/DirectionIndicationDialogFragment.java +++ b/OsmAnd/src/net/osmand/plus/mapmarkers/DirectionIndicationDialogFragment.java @@ -255,6 +255,8 @@ public class DirectionIndicationDialogFragment extends BaseOsmAndDialogFragment } ((ImageView) mainView.findViewById(R.id.action_bar_image)) .setImageDrawable(new LayerDrawable(imgList.toArray(new Drawable[imgList.size()]))); + } else { + mainView.findViewById(R.id.action_bar_image_container).setVisibility(View.GONE); } }