Fix small issues

This commit is contained in:
Victor Shcherb 2014-08-21 02:29:39 +02:00
parent 2f1e7de9b7
commit a69872e08e
3 changed files with 17 additions and 1 deletions

View file

@ -9,6 +9,7 @@
3. All your modified/created strings are in the top of the file (to make easier find what\'s translated).
PLEASE: Have a look at http://code.google.com/p/osmand/wiki/UIConsistency, it may really improve your and our work :-) Thx - Hardy
-->
<string name="index_tours">Tours</string>
<string name="flat_list_waypoints">All</string>
<string name="waypoints">Waypoints</string>
<string name="targets">Targets</string>

View file

@ -281,7 +281,20 @@ public class DownloadIndexActivity extends OsmandExpandableListActivity {
downloadFilesCheckInternet();
}
});
builder.setNegativeButton(R.string.default_buttons_no, null);
builder.setNegativeButton(R.string.default_buttons_no, new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
getEntriesToDownload().clear();
}
});
builder.setOnCancelListener(new DialogInterface.OnCancelListener() {
@Override
public void onCancel(DialogInterface dialog) {
getEntriesToDownload().clear();
}
});
builder.show();
}

View file

@ -97,6 +97,8 @@ public class IndexItemCategory implements Comparable<IndexItemCategory> {
} else if (lc.contains("oceania") || lc.contains("australia")) {
nameId = R.string.index_name_oceania;
order = 70;
} else if (lc.contains("tour")) {
nameId = R.string.index_tours;
}
String name = ctx.getString(nameId);