adrianosantostreina / MobilePermissions

This is a component to turn more easy the request permission in Android 8.x or later.
MIT License
105 stars 46 forks source link

TMobilePermissionsAndroid.SetAndroidVersion error on androd 5.1 #1

Closed pieomy closed 4 years ago

pieomy commented 4 years ago

Hi,

Thank you for share this component, very useful.

I have error on android 5.1 after MobilePermissions1.Apply; " '5.1' is not a valid integer value. "

it's probably on procedure TMobilePermissionsAndroid.SetAndroidVersion; FAndroidVersion := StrToInt(VVersionOSStr);

there is a alternative and easy way to find android version System.SysUtils.TOSVersion.Major; (return Integer like 4,5,6,7,8,9,10)

more info: https://forums.embarcadero.com/thread.jspa?threadID=183785

adrianosantostreina commented 4 years ago

Hi,

Thanks. We will fix this bug, thanks very much.

;)

adrianosantostreina commented 4 years ago

Bug fixed.

pieomy commented 4 years ago

Thank you