dexter submitted this change.
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(-)
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/telephony-ids)
- 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");
To view, visit change 38840. To unsubscribe, or for help writing mail filters, visit settings.