delete actionBarContainer if api<18

This commit is contained in:
Chumva 2018-03-28 17:58:28 +03:00
parent 05d5e2fa39
commit d0bd7db293
2 changed files with 3 additions and 0 deletions

View file

@ -69,6 +69,7 @@
android:orientation="vertical">
<FrameLayout
android:id="@+id/action_bar_image_container"
android:layout_width="match_parent"
android:layout_height="@dimen/action_bar_image_height"
android:background="?attr/actionModeBackground">

View file

@ -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);
}
}