Fix close banner button

This commit is contained in:
Alexey Kulish 2017-07-25 15:53:36 +03:00
parent 680379d98a
commit b4490665dd

View file

@ -580,14 +580,18 @@ public class MapInfoWidgetsFactory {
titleView.setSingleLine(false); titleView.setSingleLine(false);
} }
if (controller.closeBtnVisible && closeButton.getVisibility() == View.GONE) { if (controller.closeBtnVisible) {
if (closeButton.getVisibility() == View.GONE) {
closeButton.setVisibility(View.VISIBLE); closeButton.setVisibility(View.VISIBLE);
} else { }
} else if (closeButton.getVisibility() == View.VISIBLE) {
closeButton.setVisibility(View.GONE); closeButton.setVisibility(View.GONE);
} }
if (controller.refreshBtnVisible && refreshButton.getVisibility() == View.GONE) { if (controller.refreshBtnVisible) {
if (refreshButton.getVisibility() == View.GONE) {
refreshButton.setVisibility(View.VISIBLE); refreshButton.setVisibility(View.VISIBLE);
} else { }
} else if (refreshButton.getVisibility() == View.VISIBLE) {
refreshButton.setVisibility(View.GONE); refreshButton.setVisibility(View.GONE);
} }
} }