完善了功能
This commit is contained in:
@@ -155,11 +155,10 @@ public class ScanGunKeyEventHelper {
|
||||
* @return
|
||||
*/
|
||||
public boolean isScanGunEvent(KeyEvent event) {
|
||||
if (event == null || event.getDevice() == null) return false;
|
||||
L.e("event===" + event.getDevice().getName() +
|
||||
"===Char===" + event.getCharacters() +
|
||||
"===Action===" + event.getAction());
|
||||
return event.getDevice().getName().equals(mDeviceName);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user