Alarm notification now pushes ringtones
[gregoa/zavai.git] / src / app_notify.vala
index 13b5ae64e37b91bb4d39f710b4eeaa5427c75d36..2a4b14c52fa852d95aa0661f90db6d9742b1de55 100644 (file)
@@ -56,12 +56,12 @@ public abstract class Notifier : Gtk.Dialog
         // Setup our attention seeking strategy
         bool has_aux = zavai.led.aux != null && push_aux_state();
         bool has_vibrator = zavai.led.vibrator != null && push_vibrator_state();
-        // TODO bool has_ringtone = zavai.audio.soundplayer != null && push_ringtone_state();
+        bool has_ringtone = zavai.audio.soundplayer != null && push_ringtone_state();
 
         // Run dialog
         int res = base.run();
 
-        // TODO: Restore ringtone state
+        if (has_ringtone) zavai.audio.soundplayer.pop_state(notifier_name);
         if (has_vibrator) zavai.led.vibrator.pop_state(notifier_name);
         if (has_aux) zavai.led.aux.pop_state(notifier_name);
         ui.power.backlight.release(notifier_name);