This commit is contained in:
Victor Shcherb 2012-02-09 22:36:14 +01:00
parent 0a36c5fc41
commit dbb0d4af53
2 changed files with 6 additions and 4 deletions

View file

@ -802,9 +802,11 @@ public class ResourceManager {
public Map<String, String> getBackupIndexes(Map<String, String> map) {
File file = context.getSettings().extendOsmandPath(BACKUP_PATH);
for (File f : file.listFiles()) {
if (f.getName().endsWith(IndexConstants.BINARY_MAP_INDEX_EXT)) {
indexFileNames.put(f.getName(), MessageFormat.format("{0,date,dd.MM.yyyy}", new Date(f.lastModified()))); //$NON-NLS-1$
if (file != null) {
for (File f : file.listFiles()) {
if (f != null && f.getName().endsWith(IndexConstants.BINARY_MAP_INDEX_EXT)) {
map.put(f.getName(), MessageFormat.format("{0,date,dd.MM.yyyy}", new Date(f.lastModified()))); //$NON-NLS-1$
}
}
}
return map;

View file

@ -97,7 +97,7 @@ public class DownloadIndexActivity extends ExpandableListActivity {
private TreeMap<String, DownloadEntry> entriesToDownload = new TreeMap<String, DownloadEntry>();
private String FREE_VERSION_NAME = "net.osmand";
private int MAXIMUM_AVAILABLE_FREE_DOWNLOADS = 5;
private int MAXIMUM_AVAILABLE_FREE_DOWNLOADS = 8;
private TextWatcher textWatcher ;