Merge remote-tracking branch 'origin/master'

This commit is contained in:
Weblate 2016-01-02 00:26:55 +01:00
commit 03d4173131

View file

@ -37,7 +37,11 @@ public abstract class MenuTitleController {
public abstract MenuController getMenuController(); public abstract MenuController getMenuController();
public String getTitleStr() { public String getTitleStr() {
return nameStr; if (Algorithms.isEmpty(nameStr) && searchingAddress) {
return addressNotKnownStr;
} else {
return nameStr;
}
} }
public int getLeftIconId() { public int getLeftIconId() {
@ -85,8 +89,6 @@ public abstract class MenuTitleController {
acquireNameAndType(); acquireNameAndType();
if (needStreetName()) { if (needStreetName()) {
acquireStreetName(); acquireStreetName();
} else if (nameStr.equals(addressNotKnownStr)) {
nameStr = "";
} }
} }
@ -127,13 +129,8 @@ public abstract class MenuTitleController {
} }
if (Algorithms.isEmpty(nameStr)) { if (Algorithms.isEmpty(nameStr)) {
if (!Algorithms.isEmpty(typeStr)) { nameStr = typeStr;
nameStr = typeStr; typeStr = commonTypeStr;
typeStr = commonTypeStr;
} else {
nameStr = addressNotKnownStr;
typeStr = commonTypeStr;
}
} else if (Algorithms.isEmpty(typeStr)) { } else if (Algorithms.isEmpty(typeStr)) {
typeStr = commonTypeStr; typeStr = commonTypeStr;
} }