Fix #10464
This commit is contained in:
parent
f1bdb378ea
commit
e9a3a61f2e
1 changed files with 3 additions and 2 deletions
|
@ -148,11 +148,12 @@ public class DownloadOsmandIndexesHelper {
|
||||||
String date = "";
|
String date = "";
|
||||||
long dateModified = System.currentTimeMillis();
|
long dateModified = System.currentTimeMillis();
|
||||||
try {
|
try {
|
||||||
ApplicationInfo appInfo = pm.getApplicationInfo(OsmandApplication.class.getPackage().getName(), 0);
|
OsmandApplication app = settings.getContext();
|
||||||
|
ApplicationInfo appInfo = pm.getApplicationInfo(app.getPackageName(), 0);
|
||||||
dateModified = new File(appInfo.sourceDir).lastModified();
|
dateModified = new File(appInfo.sourceDir).lastModified();
|
||||||
date = AndroidUtils.formatDate((Context) settings.getContext(), dateModified);
|
date = AndroidUtils.formatDate((Context) settings.getContext(), dateModified);
|
||||||
} catch (NameNotFoundException e) {
|
} catch (NameNotFoundException e) {
|
||||||
//do nothing...
|
log.error(e);
|
||||||
}
|
}
|
||||||
List<AssetEntry> mapping = getBundledAssets(amanager);
|
List<AssetEntry> mapping = getBundledAssets(amanager);
|
||||||
for (AssetEntry asset : mapping) {
|
for (AssetEntry asset : mapping) {
|
||||||
|
|
Loading…
Reference in a new issue