This commit is contained in:
PavelRatushny 2017-12-08 18:45:05 +02:00
parent 5a73860d07
commit 82e99d92c8

View file

@ -1110,14 +1110,14 @@ public class MapContextMenuFragment extends BaseOsmAndFragment implements Downlo
String openingHoursStr = ""; String openingHoursStr = "";
if (openingHoursInfo.isOpened24_7()) { if (openingHoursInfo.isOpened24_7()) {
openingHoursStr = getString(R.string.shared_string_is_open_24_7); openingHoursStr = getString(R.string.shared_string_is_open_24_7);
} else if (!Algorithms.isEmpty(openingHoursInfo.getOpeningTime())) {
openingHoursStr = getString(R.string.opened_from) + " " + openingHoursInfo.getOpeningTime();
} else if (!Algorithms.isEmpty(openingHoursInfo.getNearToOpeningTime())) { } else if (!Algorithms.isEmpty(openingHoursInfo.getNearToOpeningTime())) {
openingHoursStr = getString(R.string.will_be_opened_at) + " " + openingHoursInfo.getNearToOpeningTime(); openingHoursStr = getString(R.string.will_be_opened_at) + " " + openingHoursInfo.getNearToOpeningTime();
} else if (!Algorithms.isEmpty(openingHoursInfo.getClosingTime())) { } else if (!Algorithms.isEmpty(openingHoursInfo.getOpeningTime())) {
openingHoursStr = getString(R.string.opened_till) + " " + openingHoursInfo.getClosingTime(); openingHoursStr = getString(R.string.opened_from) + " " + openingHoursInfo.getOpeningTime();
} else if (!Algorithms.isEmpty(openingHoursInfo.getNearToClosingTime())) { } else if (!Algorithms.isEmpty(openingHoursInfo.getNearToClosingTime())) {
openingHoursStr = getString(R.string.will_be_closed_at) + " " + openingHoursInfo.getNearToClosingTime(); openingHoursStr = getString(R.string.will_be_closed_at) + " " + openingHoursInfo.getNearToClosingTime();
} else if (!Algorithms.isEmpty(openingHoursInfo.getClosingTime())) {
openingHoursStr = getString(R.string.opened_till) + " " + openingHoursInfo.getClosingTime();
} else if (!Algorithms.isEmpty(openingHoursInfo.getOpeningDay())) { } else if (!Algorithms.isEmpty(openingHoursInfo.getOpeningDay())) {
openingHoursStr = getString(R.string.will_be_opened_on) + " " + openingHoursInfo.getOpeningDay() + "."; openingHoursStr = getString(R.string.will_be_opened_on) + " " + openingHoursInfo.getOpeningDay() + ".";
} }