{
if (!checkVconfValue()) {
if (type == NfcCommand.NFC_TAG_DISCOVERED
- || type == NfcCommand.NFC_P2P_DISCOVERED) {
+ || type == NfcCommand.NFC_P2P_DISCOVERED
+ || type == NfcCommand.NFC_P2P_SEND) {
return false;
} else {
// for initializing the state
butP2PDiscover.setEnabled(false);
butP2PDetach.setEnabled(true);
butP2PSend.setEnabled(false);
- }
+ } else {
+ recordPage.setEnableState();
+
+ cmbTagTypeList.setEnabled(true);
+ butTagAttach.setEnabled(true);
+ butTagDetach.setEnabled(false);
+
+ butP2PDiscover.setEnabled(true);
+ butP2PDetach.setEnabled(false);
+ butP2PSend.setEnabled(false);
+ }
}
private boolean checkDeviceConnectedAlready()
}
}
}
-}
\ No newline at end of file
+}