Merge pull request #8970 from peppy/android-version-update

Fix android usage of obsoleted VersionCode
This commit is contained in:
Dean Herbert 2020-05-08 16:09:04 +09:00 committed by GitHub
commit 48f93adb53
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,7 +18,8 @@ namespace osu.Android
try
{
string versionName = packageInfo.VersionCode.ToString();
// todo: needs checking before play store redeploy.
string versionName = packageInfo.VersionName;
// undo play store version garbling
return new Version(int.Parse(versionName.Substring(0, 4)), int.Parse(versionName.Substring(4, 4)), int.Parse(versionName.Substring(8, 1)));
}