[Title] move inital data sending code to connect().
authorSooyoung Ha <yoosah.ha@samsung.com>
Fri, 31 Aug 2012 11:47:49 +0000 (20:47 +0900)
committerSooyoung Ha <yoosah.ha@samsung.com>
Fri, 31 Aug 2012 11:47:49 +0000 (20:47 +0900)
[Type] bug fix
[Module] event injector
[Priority] major
[Jira#] N_SE-8038
[Redmine#]
[Problem]
[Cause]
[Solution]
[TestCase]

org.tizen.device/src/org/tizen/device/battery/page/BatteryPage.java
org.tizen.sensor.light/src/org/tizen/sensor/light/page/LightPage.java
org.tizen.sensor.proximity/src/org/tizen/sensor/proximity/page/ProximityPage.java

index 5edf5f3..bd365bb 100644 (file)
@@ -245,6 +245,12 @@ public class BatteryPage extends AbstractInjectorPage implements ISelectionListe
                
                radioButton[0].setSelection(false);
                radioButton[1].setSelection(true);
+
+               // set default values
+               sensorOn = 0;
+               
+               sendMessage(1, sendData);
+               sendMessage(2, sensorOn);
        }
 
 //     @Override
@@ -276,11 +282,5 @@ public class BatteryPage extends AbstractInjectorPage implements ISelectionListe
                                }
                        }
                }
-               // set default values
-               sendData = 50;
-               sensorOn = 0;
-               
-               sendMessage(1, sendData);
-               sendMessage(2, sensorOn);
        }
 }
index 8162a03..a002d1d 100644 (file)
@@ -221,6 +221,8 @@ public class LightPage extends AbstractInjectorPage implements ISelectionListene
                // TODO Auto-generated method stub
                currentDevice = ConnectionPlugin.getDefault().getCurrentDevice();
                setLevelData();
+               sendMessage(1, levelData);
+               sendMessage(2, luxData);
        }
 
 //     @Override
@@ -252,7 +254,5 @@ public class LightPage extends AbstractInjectorPage implements ISelectionListene
                                }
                        }
                }
-               sendMessage(1, levelData);
-               sendMessage(2, luxData);
        }
 }
index 771ee0a..36f6ca2 100644 (file)
@@ -149,6 +149,5 @@ public class ProximityPage extends AbstractInjectorPage implements ISelectionLis
                                }
                        }
                }
-               sendMessage(proximity_status);
        }
 }