try fix "No address determine" display

This commit is contained in:
sonora 2015-12-05 13:59:39 +01:00
parent eb3007dfa2
commit 2a3512225e

View file

@ -174,23 +174,27 @@ public abstract class MenuTitleController {
if (!Algorithms.isEmpty(streetStr) && object.getDistance() > 100) {
streetStr = getMapActivity().getString(R.string.shared_string_near) + " " + streetStr;
} else if (Algorithms.isEmpty(streetStr)) {
streetStr = "No address determined";
}
if (!Algorithms.isEmpty(streetStr)) {
MenuController menuController = getMenuController();
if (menuController == null || menuController.displayStreetNameInTitle()) {
nameStr = streetStr;
getPointDescription().setName(nameStr);
}
getMapActivity().runOnUiThread(new Runnable() {
public void run() {
refreshMenuTitle();
}
});
}
}
if (Algorithms.isEmpty(streetStr)) {
streetStr = "No address determined";
}
//if (!Algorithms.isEmpty(streetStr)) {
MenuController menuController = getMenuController();
if (menuController == null || menuController.displayStreetNameInTitle()) {
nameStr = streetStr;
getPointDescription().setName(nameStr);
}
getMapActivity().runOnUiThread(new Runnable() {
public void run() {
refreshMenuTitle();
}
});
//}
return true;
}