According to the config schema file those are booleans so when set to
true the sound should be played many times, not just two (as it is now
as true is casted to 1, i.e. play and then repeat once).

Hopefully 1024 is enough to meet user expectations.

Signed-off-by: Paul Fertser <fercer...@gmail.com>
---
 framework/subsystems/oeventsd/fso_actions.py |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/framework/subsystems/oeventsd/fso_actions.py 
b/framework/subsystems/oeventsd/fso_actions.py
index c0a29dd..9df0d87 100644
--- a/framework/subsystems/oeventsd/fso_actions.py
+++ b/framework/subsystems/oeventsd/fso_actions.py
@@ -330,7 +330,7 @@ class UserAlertAction(Action):
         elif k == "%s-volume" % self.eventname:
             self.volume = int(value)
         elif k == "%s-loop" % self.eventname:
-            self.loop = int(value)
+            self.loop = 1024 if bool(self.loop) else 0
         elif k == "%s-length" % self.eventname:
             self.length = int(value)
         elif k == "%s-vibration" % self.eventname:
@@ -379,7 +379,7 @@ class UserAlertAction(Action):
 
             self.tone = str(self.tone)
             self.volume = int(self.volume)
-            self.loop = int(self.loop)
+            self.loop = 1024 if bool(self.loop) else 0
             self.length = int(self.length)
             self.vibrate = int(self.vibrate)
 
-- 
1.7.10


_______________________________________________
Smartphones-userland mailing list
Smartphones-userland@linuxtogo.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/smartphones-userland

Reply via email to