dexter has submitted this change. ( https://gerrit.osmocom.org/c/android-apdu-proxy/+/38840?usp=email )
Change subject: MainActivity: use Double:valueOf to convert release version number ......................................................................
MainActivity: use Double:valueOf to convert release version number
Releases are not always integer numbers, they can have decimal places too.
Related: OS#6367 Change-Id: I2d0a72269e4056fb6f5ee8587b8d4ba762dd9d6d --- M app/src/main/java/org/osmocom/androidApduProxy/MainActivity.java 1 file changed, 1 insertion(+), 1 deletion(-)
Approvals: dexter: Looks good to me, approved Jenkins Builder: Verified
diff --git a/app/src/main/java/org/osmocom/androidApduProxy/MainActivity.java b/app/src/main/java/org/osmocom/androidApduProxy/MainActivity.java index fcdebea..e0174e6 100644 --- a/app/src/main/java/org/osmocom/androidApduProxy/MainActivity.java +++ b/app/src/main/java/org/osmocom/androidApduProxy/MainActivity.java @@ -164,7 +164,7 @@ //an error message and continue normally, maybe we are lucky and it works anyway. //(This check only works on Android 11 and higher, //see also https://developer.android.com/develop/connectivity/telecom/dialer-app/teleph...) - if (Integer.valueOf(Build.VERSION.RELEASE) >= 11 && + if (Double.valueOf(Build.VERSION.RELEASE) >= 11 && !packageManager.hasSystemFeature(PackageManager.FEATURE_SE_OMAPI_UICC)) { msgBox("Feature FEATURE_SE_OMAPI_UICC is not available on this device, APDU access to UICC/eUICC not possible!", "Error");