Add note about substring usage

This commit is contained in:
Dean Herbert 2020-06-16 20:20:46 +09:00
parent 3f1b9edabe
commit 115ea244be
1 changed files with 1 additions and 0 deletions

View File

@ -33,6 +33,7 @@ public override Version AssemblyVersion
if (Build.VERSION.SdkInt >= BuildVersionCodes.P)
{
versionName = packageInfo.LongVersionCode.ToString();
// ensure we only read the trailing portion of long (the part we are interested in).
versionName = versionName.Substring(versionName.Length - 9);
}
else