Merge pull request #10602 from osmandapp/fix_voice_prompts_update

Fix #10464
This commit is contained in:
Vitaliy 2021-01-17 15:19:30 +02:00 committed by GitHub
commit 2a554ac1f6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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) {