[Title]fixed battery charger send bug
authorsungmin ha <sungmin82.ha@samsung.com>
Mon, 9 Apr 2012 02:38:39 +0000 (11:38 +0900)
committersungmin ha <sungmin82.ha@samsung.com>
Mon, 9 Apr 2012 02:38:39 +0000 (11:38 +0900)
[Type]Bugfix
[Module]eventinjector
[Priority]Major
[Jira#]Nabi_SE/N_SE-445
[Redmine#]  // Redmine Isuue Number
[Problem]  // Problem Description
[Cause]  // Cause Description
[Solution] // Solution Description
[TestCase]  // Executed the test-target (How to)

org.tizen.device/src/org/tizen/device/battery/page/BatteryPage.java
package/pkginfo.manifest

index 9aff7d2..e5d221b 100644 (file)
@@ -110,6 +110,8 @@ public class BatteryPage extends AbstractInjectorPage implements ISelectionListe
                                {
                                        radioButton[0].setSelection(false);
                                        radioButton[1].setSelection(true);
+                                       sensorOn = 0;
+                                       sendMessage(sendData, sensorOn);
                                }
                        }
                });
@@ -140,21 +142,21 @@ public class BatteryPage extends AbstractInjectorPage implements ISelectionListe
                                        radioButton[0].setSelection(false);
                                        radioButton[1].setSelection(true);
                                }
-                               else
+
+                               for( int i = 0 ; i < radioButton.length ; i++ ) 
                                {
-                                       for( int i = 0 ; i < radioButton.length ; i++ ) {
-                                               if(radioButton[i].getSelection()) {
-                                                       if( i == 0 ) { // On
-                                                               sensorOn = 1;
-                                                       }
-                                                       else {  // Off
-                                                               sensorOn = 0;
-                                                       }
+                                       if(radioButton[i].getSelection()) {
+                                               if( i == 0 ) { // On
+                                                       sensorOn = 1;
+                                               }
+                                               else {  // Off
+                                                       sensorOn = 0;
                                                }
-                                       super.widgetSelected(e);
-                                       sendMessage(sendData, sensorOn);
                                        }
                                }
+                               
+                               super.widgetSelected(e);
+                               sendMessage(sendData, sensorOn);
                        }
                });
 
index 0f11942..f3dc4c9 100644 (file)
@@ -1,5 +1,5 @@
 Package:eventinjector-eplugin
-Version:0.2.12
+Version:0.2.13
 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.12
+Version:0.2.13
 OS:windows
 Build-host-os:linux
 Maintainer:yeongkyoon Lee <yeongkyoon.lee@samsung.com>, sungmin Ha <sungmin82.ha@samsung.com>