dexter has uploaded this change for review.

View 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(-)

git pull ssh://gerrit.osmocom.org:29418/android-apdu-proxy refs/changes/40/38840/1
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.

Gerrit-MessageType: newchange
Gerrit-Project: android-apdu-proxy
Gerrit-Branch: master
Gerrit-Change-Id: I2d0a72269e4056fb6f5ee8587b8d4ba762dd9d6d
Gerrit-Change-Number: 38840
Gerrit-PatchSet: 1
Gerrit-Owner: dexter <pmaier@sysmocom.de>