[Title] delete empty and unknown tag types
authorjihye kim <jihye1128.kim@samsung.com>
Sun, 22 Apr 2012 15:25:49 +0000 (00:25 +0900)
committerjihye kim <jihye1128.kim@samsung.com>
Sun, 22 Apr 2012 15:25:49 +0000 (00:25 +0900)
[Type] work
[Module] event injector
[Priority] major
[Jira#]
[Redmine#]
[Problem]
[Cause]
[Solution]
[TestCase]

org.tizen.nfc/src/org/tizen/nfc/page/NfcPage.java
org.tizen.nfc/src/org/tizen/nfc/page/NfcStringResource.java
package/pkginfo.manifest

index 5a71948..12992a0 100644 (file)
@@ -195,7 +195,7 @@ public class NfcPage extends AbstractInjectorPage implements ISelectionListener
                        private void Selected(SelectionEvent e) {
                                int i = cmbRecordFormat.getSelectionIndex();
                                if (i != -1) {
-                                       checkRecordFormat(i);
+                                       checkRecordFormat(i + 1);
                                        txtRecordTypeName.setText("");
                                        cmbRecordTypeName.select(0);
                                        txtRecordID.setText("");
@@ -365,7 +365,7 @@ public class NfcPage extends AbstractInjectorPage implements ISelectionListener
                if (i != -1) {
                        NDEFRecord record = RecordList.get(i);
                        checkRecordFormat(record.getFormat());
-                       cmbRecordFormat.select(record.getFormat());
+                       cmbRecordFormat.select(record.getFormat() - 1);
 
                        if (record.getFormat() == 1) {
                                if (record.getTypeName().compareTo("U") == 0)
@@ -439,7 +439,7 @@ public class NfcPage extends AbstractInjectorPage implements ISelectionListener
                        {
                                cmbRecordFormat.setEnabled(true);
 
-                               checkRecordFormat(cmbRecordFormat.getSelectionIndex());
+                               checkRecordFormat(cmbRecordFormat.getSelectionIndex() + 1);
                                txtRecordTypeName.setText("");
                                cmbRecordTypeName.select(0);
                                txtRecordID.setText("");
@@ -485,7 +485,7 @@ public class NfcPage extends AbstractInjectorPage implements ISelectionListener
                        {
                                cmbRecordFormat.setEnabled(true);
 
-                               checkRecordFormat(cmbRecordFormat.getSelectionIndex());
+                               checkRecordFormat(cmbRecordFormat.getSelectionIndex() + 1);
                                txtRecordTypeName.setText("");
                                cmbRecordTypeName.select(0);
                                txtRecordID.setText("");
@@ -661,9 +661,9 @@ public class NfcPage extends AbstractInjectorPage implements ISelectionListener
 
        private void setRecordValue(NDEFRecord record)
        {
-               record.setFormat(cmbRecordFormat.getSelectionIndex());
+               record.setFormat(cmbRecordFormat.getSelectionIndex() + 1);
 
-               if (cmbRecordFormat.getSelectionIndex() == 1) {
+               if ((cmbRecordFormat.getSelectionIndex() + 1) == 1) {
                        record.setTypeName(TypeNameList[cmbRecordTypeName.getSelectionIndex()]);
                } else {
                        if (txtRecordTypeName.getText().isEmpty() == true)
index 2272fbf..2c93807 100644 (file)
@@ -82,12 +82,12 @@ class RecordFormat extends NfcStringResource
 
        private RecordFormat()
        {
-               add(0, "NDEF_TNF_EMPTY");
-               add(1, "NDEF_TNF_WELL_KNOWN");
-               add(2, "NDEF_TNF_MIME_MEDIA");
-               add(3, "NDEF_TNF_ABSOLUTE_URI");
-               add(4, "NDEF_TNF_EXTERNAL");
-               add(5, "NDEF_TNF_UNKNOWN");
+               //add(0, "NDEF_TNF_EMPTY");
+               add(0, "NDEF_TNF_WELL_KNOWN");
+               add(1, "NDEF_TNF_MIME_MEDIA");
+               add(2, "NDEF_TNF_ABSOLUTE_URI");
+               add(3, "NDEF_TNF_EXTERNAL");
+               //add(5, "NDEF_TNF_UNKNOWN");
        }
 }
 
index 478aa7a..4841744 100644 (file)
@@ -1,5 +1,5 @@
 Package:eventinjector-eplugin
-Version:0.2.18
+Version:0.2.19
 OS:linux
 Build-host-os:linux
 Maintainer:yeongkyoon Lee <yeongkyoon.lee@samsung.com>, sungmin Ha <sungmin82.ha@samsung.com>
@@ -9,7 +9,7 @@ Install-dependency:common-eplugin[linux], base-ide-product[linux]
 Source:eventinjector-eplugin
 
 Package:eventinjector-eplugin
-Version:0.2.18
+Version:0.2.19
 OS:windows
 Build-host-os:linux
 Maintainer:yeongkyoon Lee <yeongkyoon.lee@samsung.com>, sungmin Ha <sungmin82.ha@samsung.com>