Unverified Commit 80076722 authored by Pablo Correa Gómez's avatar Pablo Correa Gómez
Browse files

feedback-manager: Rotate profiles on touch to quick settings

Currently, there exist three different feedback profiles:
"full", "quiet", "silent", but quick settings touch only
 switches in-between "full" and "silent". Instead, rotate
 from "full" to "quiet" to "silent" and back to "full"
Signed-off-by: default avatarPablo Correa Gómez <ablocorrea@hotmail.com>
parent 22d86963
Pipeline #68350 passed with stages
in 41 minutes and 1 second
......@@ -215,12 +215,14 @@ phosh_feedback_manager_get_profile (PhoshFeedbackManager *self)
phosh_feedback_manager_toggle (PhoshFeedbackManager *self)
const char *profile = "silent";
const char *profile = "silent", *old = lfb_get_feedback_profile ();
if (g_strcmp0 (lfb_get_feedback_profile (), "full"))
if (!g_strcmp0 (old, "silent"))
profile = "full";
else if (!g_strcmp0 (old, "full"))
profile = "quiet";
g_debug ("Setting feedback profile to %s", profile);
g_debug ("Setting feedback profile to %s, was %s", profile, old);
lfb_set_feedback_profile (profile);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment