[Title] eventinjector-eplugin: modify p2p send action when emulator's nfc state is...
authorjihye kim <jihye1128.kim@samsung.com>
Mon, 28 Jan 2013 06:03:56 +0000 (15:03 +0900)
committerjihye kim <jihye1128.kim@samsung.com>
Mon, 28 Jan 2013 06:05:49 +0000 (15:05 +0900)
[Desc.] modify p2p send action when emulator's nfc state is off.
[Issue] N/A

org.tizen.injector.nfc/src/org/tizen/injector/nfc/page/NfcHelpProcess.java
org.tizen.injector.nfc/src/org/tizen/injector/nfc/page/NfcPage.java

index 47dd92e..f7d065a 100644 (file)
@@ -231,7 +231,8 @@ public class NfcHelpProcess {
        {
                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
index f24f871..48a9541 100644 (file)
@@ -259,7 +259,17 @@ public class NfcPage extends AbstractInjectorPage implements ISelectionListener
                        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()
@@ -313,4 +323,4 @@ public class NfcPage extends AbstractInjectorPage implements ISelectionListener
                        }
                }
        }
-}
\ No newline at end of file
+}