From: sungmin ha Date: Mon, 9 Apr 2012 02:38:39 +0000 (+0900) Subject: [Title]fixed battery charger send bug X-Git-Tag: 2.2.1_release^2~117^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ad5d516dfe7f80ebaabcc36ea8e314126049110d;p=sdk%2Femulator%2Feventinjector-eplugin.git [Title]fixed battery charger send bug [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) --- diff --git a/org.tizen.device/src/org/tizen/device/battery/page/BatteryPage.java b/org.tizen.device/src/org/tizen/device/battery/page/BatteryPage.java index 9aff7d2..e5d221b 100644 --- a/org.tizen.device/src/org/tizen/device/battery/page/BatteryPage.java +++ b/org.tizen.device/src/org/tizen/device/battery/page/BatteryPage.java @@ -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); } }); diff --git a/package/pkginfo.manifest b/package/pkginfo.manifest index 0f11942..f3dc4c9 100644 --- a/package/pkginfo.manifest +++ b/package/pkginfo.manifest @@ -1,5 +1,5 @@ Package:eventinjector-eplugin -Version:0.2.12 +Version:0.2.13 OS:linux Build-host-os:linux Maintainer:yeongkyoon Lee , sungmin Ha @@ -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 , sungmin Ha