mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 16:29:58 +09:00
Add note about substring usage
This commit is contained in:
@ -33,6 +33,7 @@ namespace osu.Android
|
|||||||
if (Build.VERSION.SdkInt >= BuildVersionCodes.P)
|
if (Build.VERSION.SdkInt >= BuildVersionCodes.P)
|
||||||
{
|
{
|
||||||
versionName = packageInfo.LongVersionCode.ToString();
|
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);
|
versionName = versionName.Substring(versionName.Length - 9);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user