Fix small issues
This commit is contained in:
parent
7aec6b168a
commit
300a542e94
2 changed files with 9 additions and 9 deletions
|
@ -155,7 +155,7 @@ public class SQLiteTileSource implements ITileSource {
|
|||
if(db == null){
|
||||
return false;
|
||||
}
|
||||
Cursor cursor = db.rawQuery("SELECT 1 FROM tiles WHERE z = ?", new String[] {(17 - zoom)+""}); //$NON-NLS-1$//$NON-NLS-2$//$NON-NLS-3$//$NON-NLS-4$
|
||||
Cursor cursor = db.rawQuery("SELECT 1 FROM tiles WHERE z = ? LIMIT 1", new String[] {(17 - zoom)+""}); //$NON-NLS-1$//$NON-NLS-2$//$NON-NLS-3$//$NON-NLS-4$
|
||||
try {
|
||||
boolean e = cursor.moveToFirst();
|
||||
cursor.close();
|
||||
|
|
|
@ -95,16 +95,16 @@ public class LocalIndexHelper {
|
|||
template.getUrlTemplate() != null, zooms.toString());
|
||||
info.setDescription(descr);
|
||||
} else if(f.isFile() && f.getName().endsWith(SQLiteTileSource.EXT)){
|
||||
SQLiteTileSource template = new SQLiteTileSource(f, Collections.EMPTY_LIST);
|
||||
Set<Integer> zooms = new TreeSet<Integer>();
|
||||
for(int i=1; i<22; i++){
|
||||
if(template.exists(i)){
|
||||
zooms.add(i);
|
||||
}
|
||||
}
|
||||
SQLiteTileSource template = new SQLiteTileSource(f, TileSourceManager.getKnownSourceTemplates());
|
||||
// Set<Integer> zooms = new TreeSet<Integer>();
|
||||
// for(int i=1; i<22; i++){
|
||||
// if(template.exists(i)){
|
||||
// zooms.add(i);
|
||||
// }
|
||||
// }
|
||||
String descr = app.getString(R.string.local_index_tile_data,
|
||||
template.getName(), template.getMinimumZoomSupported(), template.getMaximumZoomSupported(),
|
||||
template.couldBeDownloadedFromInternet(), zooms.toString());
|
||||
template.couldBeDownloadedFromInternet(), "");
|
||||
info.setDescription(descr);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue