Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c86dbc9a authored by caozhiyuan's avatar caozhiyuan Committed by android-build-merger
Browse files

init: Fix sync issue on property trigger.

am: 876ad457

Change-Id: Ie5958255e4a785c951cc04e47d139fe1ae719139
parents fc1a1dfd 876ad457
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -478,11 +478,17 @@ static void process_kernel_cmdline() {
    if (qemu[0]) import_kernel_cmdline(true, import_kernel_nv);
}

static int property_enable_triggers_action(const std::vector<std::string>& args)
{
    /* Enable property triggers. */
    property_triggers_enabled = 1;
    return 0;
}

static int queue_property_triggers_action(const std::vector<std::string>& args)
{
    ActionManager::GetInstance().QueueBuiltinAction(property_enable_triggers_action, "enable_property_trigger");
    ActionManager::GetInstance().QueueAllPropertyTriggers();
    /* enable property triggers */
    property_triggers_enabled = 1;
    return 0;
}