Add note about substring usage

This commit is contained in:
Dean Herbert 2020-06-16 20:20:46 +09:00
parent 3f1b9edabe
commit 115ea244be

View File

@ -33,6 +33,7 @@ namespace osu.Android
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