summaryrefslogtreecommitdiff
path: root/android-project
diff options
context:
space:
mode:
authorSam Lantinga <slouken@libsdl.org>2020-05-29 15:40:17 -0700
committerSam Lantinga <slouken@libsdl.org>2020-05-29 15:40:17 -0700
commit056d006dc8d7e03101b25ab35ed8b089a79da450 (patch)
tree6180da64157ff4d62783849822aa5b4fa2e0551f /android-project
parentc6c3a1e263d1c0f756de0998e34b26988a37ef3b (diff)
downloadsdl-056d006dc8d7e03101b25ab35ed8b089a79da450.tar.gz
Don't bother logging security exception getting the device serial number
This can happen anytime we haven't opened the device yet
Diffstat (limited to 'android-project')
-rw-r--r--android-project/app/src/main/java/org/libsdl/app/HIDDeviceUSB.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/android-project/app/src/main/java/org/libsdl/app/HIDDeviceUSB.java b/android-project/app/src/main/java/org/libsdl/app/HIDDeviceUSB.java
index efcb7b195..d20fe80bc 100644
--- a/android-project/app/src/main/java/org/libsdl/app/HIDDeviceUSB.java
+++ b/android-project/app/src/main/java/org/libsdl/app/HIDDeviceUSB.java
@@ -57,8 +57,7 @@ class HIDDeviceUSB implements HIDDevice {
result = mDevice.getSerialNumber();
}
catch (SecurityException exception) {
- Log.w(TAG, "App permissions mean we cannot get serial number for device " + getDeviceName() + " message: " + exception.getMessage());
- result = "";
+ //Log.w(TAG, "App permissions mean we cannot get serial number for device " + getDeviceName() + " message: " + exception.getMessage());
}
}
if (result == null) {