fix ByteBuffer offset mistake in NfcActivity
This commit is contained in:
1 parent
b2b19d7b2b
commit
354bc87579
1 file changed
+2
-1
@@ -340,7 +340,8 @@ public class NfcActivity extends ActionBarActivity {
|
||||
// return the master key fingerprint
|
||||
ByteBuffer fpbuf = ByteBuffer.wrap(data);
|
||||
byte[] fp = new byte[20];
|
||||
fpbuf.get(fp, 20*idx, 20);
|
||||
fpbuf.position(idx*20);
|
||||
fpbuf.get(fp, 0, 20);
|
||||
|
||||
return fp;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user