Update download func
Merge branch 'master' of github.com:osmandapp/OsmAnd-misc