Show transport rotes on top

This commit is contained in:
PavelRatushnyi 2017-12-22 15:15:43 +02:00
parent dc9529fa69
commit 8f75d07b44

View file

@ -288,14 +288,14 @@ public class MenuBuilder {
if (showTitleIfTruncated) {
buildTitleRow(view);
}
if (showTransportRoutes()) {
buildRow(view, 0, app.getString(R.string.transport_Routes), 0, true, getCollapsableTransportStopRoutesView(view.getContext(), false),
false, 0, false, null, true);
}
buildNearestWikiRow(view);
if (needBuildPlainMenuItems()) {
buildPlainMenuItems(view);
}
if (routes.size() > 0) {
buildRow(view, 0, app.getString(R.string.transport_Routes), 0, true, getCollapsableTransportStopRoutesView(view.getContext(), false),
false, 0, false, null, true);
}
buildInternal(view);
if (showOnlinePhotos) {
buildNearestPhotosRow(view);
@ -304,6 +304,10 @@ public class MenuBuilder {
buildAfter(view);
}
private boolean showTransportRoutes() {
return routes.size() > 0;
}
void onHide() {
hidden = true;
}