[Title]add light level event
authorsungmin ha <sungmin82.ha@samsung.com>
Mon, 9 Apr 2012 06:26:00 +0000 (15:26 +0900)
committersungmin ha <sungmin82.ha@samsung.com>
Mon, 9 Apr 2012 06:26:00 +0000 (15:26 +0900)
[Type]Bugfix
[Module]eventinjector
[Priority]Minor
[Jira#]Nabi_SE / N_SE-460
[Redmine#]  // Redmine Isuue Number
[Problem]  // Problem Description
[Cause]  // Cause Description
[Solution] // Solution Description
[TestCase]  // Executed the test-target (How to)

org.tizen.sensor.light/src/org/tizen/sensor/light/page/LightPage.java

index f4a4b7b..4486cae 100644 (file)
@@ -119,6 +119,9 @@ public class LightPage extends AbstractInjectorPage implements ISelectionListene
                                }
                                luxData = Integer.parseInt(number);
                                sendMessage(2, luxData);
+                               
+                               levelData = (luxData / 6554) % 10 + 1; 
+                               sendMessage(1, levelData);
                        }
                });