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 = "";
|
||||
long dateModified = System.currentTimeMillis();
|
||||
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();
|
||||
date = AndroidUtils.formatDate((Context) settings.getContext(), dateModified);
|
||||
} catch (NameNotFoundException e) {
|
||||
//do nothing...
|
||||
log.error(e);
|
||||
}
|
||||
List<AssetEntry> mapping = getBundledAssets(amanager);
|
||||
for (AssetEntry asset : mapping) {
|
||||
|
|
Loading…
Reference in a new issue