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

Commit b94063ed authored by Elliott Hughes's avatar Elliott Hughes Committed by android-build-merger
Browse files

Merge "init: Fix sync issue on property trigger." am: 80d2f01f

am: 65016074

Change-Id: I72dda41a53e95420653027176b04c7d359fa8e71
parents 2e88b5c8 65016074
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -351,11 +351,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;
}