diff options
Diffstat (limited to 'core/java')
| -rw-r--r-- | core/java/android/nfc/NfcEvent.java | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/core/java/android/nfc/NfcEvent.java b/core/java/android/nfc/NfcEvent.java index cf1d71a8b5e8..aff4f52f2bab 100644 --- a/core/java/android/nfc/NfcEvent.java +++ b/core/java/android/nfc/NfcEvent.java @@ -39,13 +39,18 @@ public final class NfcEvent { public final NfcAdapter nfcAdapter; /** - * The LLCP version of the peer associated with the NFC event. - * The major version is in the top nibble, the minor version is in the bottom nibble. + * The major LLCP version number of the peer associated with the NFC event. */ - public final byte peerLlcpVersion; + public final int peerLlcpMajorVersion; + + /** + * The minor LLCP version number of the peer associated with the NFC event. + */ + public final int peerLlcpMinorVersion; NfcEvent(NfcAdapter nfcAdapter, byte peerLlcpVersion) { this.nfcAdapter = nfcAdapter; - this.peerLlcpVersion = peerLlcpVersion; + this.peerLlcpMajorVersion = (peerLlcpVersion & 0xF0) >> 4; + this.peerLlcpMinorVersion = peerLlcpVersion & 0x0F; } } |
