Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
6ec7cbb884
3 changed files with 13 additions and 3 deletions
|
@ -205,7 +205,14 @@
|
|||
<replaceregexp file="res/values/no_translate.xml" match='"app_version">([^#]+)(.*)<' replace='"app_version">\1${build.version}<' byline="true" />
|
||||
</then>
|
||||
</if>
|
||||
|
||||
<if>
|
||||
<condition>
|
||||
<isset property="app.edition" />
|
||||
</condition>
|
||||
<then>
|
||||
<replaceregexp file="res/values/no_translate.xml" match='"app_edition">(.*)<' replace='"app_edition">${app.edition}<' byline="true" />
|
||||
</then>
|
||||
</if>
|
||||
</target>
|
||||
|
||||
|
||||
|
|
|
@ -35,4 +35,5 @@
|
|||
\n\tPavol Zibrita - first contributor and developer of some utilities
|
||||
\n\tHarry van der Wolf - contributor (contribute to country boundaries + configuration file + address files and else), active forum participant.
|
||||
</string>
|
||||
<string name="app_edition"></string>
|
||||
</resources>
|
||||
|
|
|
@ -201,8 +201,10 @@ public class DashboardActivity extends BaseDownloadActivity {
|
|||
try {
|
||||
PackageManager pm = activity.getPackageManager();
|
||||
ApplicationInfo appInfo = pm.getApplicationInfo(OsmandApplication.class.getPackage().getName(), 0);
|
||||
Date date = new Date(new File(appInfo.sourceDir).lastModified());
|
||||
edition = activity.getString(R.string.local_index_installed) + " : \t" + DateFormat.getDateFormat(app).format(date);
|
||||
//Next line produced bogus dates in man situtations, let us try to use the BUILD_ID here as delivered from builder
|
||||
//Date date = new Date(new File(appInfo.sourceDir).lastModified());
|
||||
//edition = activity.getString(R.string.local_index_installed) + " : \t" + DateFormat.getDateFormat(app).format(date);
|
||||
edition = activity.getString(R.string.local_index_installed) + " : \t" + activity.getString(R.string.app_edition);
|
||||
} catch (Exception e) {
|
||||
}
|
||||
SpannableString content = new SpannableString(vt + version +"\n" +
|
||||
|
|
Loading…
Reference in a new issue