mirror of https://github.com/encounter/SDL.git
Don't bother logging security exception getting the device serial number
This can happen anytime we haven't opened the device yet
This commit is contained in:
parent
eea450bc99
commit
68e1731e02
|
@ -57,8 +57,7 @@ class HIDDeviceUSB implements HIDDevice {
|
||||||
result = mDevice.getSerialNumber();
|
result = mDevice.getSerialNumber();
|
||||||
}
|
}
|
||||||
catch (SecurityException exception) {
|
catch (SecurityException exception) {
|
||||||
Log.w(TAG, "App permissions mean we cannot get serial number for device " + getDeviceName() + " message: " + exception.getMessage());
|
//Log.w(TAG, "App permissions mean we cannot get serial number for device " + getDeviceName() + " message: " + exception.getMessage());
|
||||||
result = "";
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (result == null) {
|
if (result == null) {
|
||||||
|
|
Loading…
Reference in New Issue