diff --git a/DataExtractionOSM/src/net/osmand/IProgress.java b/DataExtractionOSM/src/net/osmand/IProgress.java index 68cd736ee5..3f349573ef 100644 --- a/DataExtractionOSM/src/net/osmand/IProgress.java +++ b/DataExtractionOSM/src/net/osmand/IProgress.java @@ -26,5 +26,32 @@ public interface IProgress { public boolean isIndeterminate(); public boolean isInterrupted(); + + public IProgress EMPTY_PROGRESS = new IProgress() { + + @Override + public void startWork(int work) {} + + @Override + public void startTask(String taskName, int work) {} + + @Override + public void setGeneralProgress(String genProgress) {} + + @Override + public void remaining(int remainingWork) {} + + @Override + public void progress(int deltaWork) {} + + @Override + public boolean isInterrupted() {return false;} + + @Override + public boolean isIndeterminate() {return false;} + + @Override + public void finishTask() {} + }; } diff --git a/DataExtractionOSM/src/net/osmand/binary/BinaryMapIndexReader.java b/DataExtractionOSM/src/net/osmand/binary/BinaryMapIndexReader.java index f9896d0f27..0f52483af5 100644 --- a/DataExtractionOSM/src/net/osmand/binary/BinaryMapIndexReader.java +++ b/DataExtractionOSM/src/net/osmand/binary/BinaryMapIndexReader.java @@ -67,7 +67,7 @@ public class BinaryMapIndexReader { } init(); } - + private void init() throws IOException { boolean initCorrectly = false; while(true){ diff --git a/OsmAnd/AndroidManifest.xml b/OsmAnd/AndroidManifest.xml index 5350b6a8db..0db446109b 100644 --- a/OsmAnd/AndroidManifest.xml +++ b/OsmAnd/AndroidManifest.xml @@ -48,6 +48,7 @@ + diff --git a/OsmAnd/res/layout/local_index.xml b/OsmAnd/res/layout/local_index.xml new file mode 100644 index 0000000000..53f78d3671 --- /dev/null +++ b/OsmAnd/res/layout/local_index.xml @@ -0,0 +1,27 @@ + + + + +