Change profile check to also pass on river.brf
This commit is contained in:
parent
f29616eefc
commit
c92c289a3f
1 changed files with 1 additions and 1 deletions
|
@ -112,7 +112,7 @@ public class BImportActivity extends Activity {
|
|||
displayMessage(resultMessage.toString());
|
||||
}
|
||||
|
||||
if (!mProfileData.contains("highway=") || (!mProfileData.contains("costfactor")) || (!mProfileData.contains("---context:global"))) {
|
||||
if (!mProfileData.contains("---context:global") || (!mProfileData.contains("---context:way"))) {
|
||||
resultMessage.append("ERROR: this file is not a valid brouter-profile\n");
|
||||
displayMessage(resultMessage.toString());
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue