Fix bug
This commit is contained in:
parent
0a36c5fc41
commit
dbb0d4af53
2 changed files with 6 additions and 4 deletions
|
@ -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;
|
||||
|
|
|
@ -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 ;
|
||||
|
|
Loading…
Reference in a new issue