fix ByteBuffer offset mistake in NfcActivity

This commit is contained in:
Vincent Breitmoser 2014-09-30 11:36:51 +02:00
parent b2b19d7b2b
commit 354bc87579

View File

@ -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;
}