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

Commit 3f2e3615 authored by Felipe Leme's avatar Felipe Leme Committed by Android (Google) Code Review
Browse files

Merge "Pass --receiver-foreground to AM intents."

parents b18a0988 edb0b0c3
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -578,8 +578,8 @@ void send_broadcast(const std::string& action, const std::vector<std::string>& a
        fprintf(stderr, "send_broadcast: too many arguments (%d)\n", (int) args.size());
        return;
    }
    const char *am_args[1024] = { "/system/bin/am", "broadcast", "--user", "0",
                                  "-a", action.c_str() };
    const char *am_args[1024] = { "/system/bin/am", "broadcast", "--receiver-foreground",
                                  "--user", "0", "-a", action.c_str() };
    size_t am_index = 5; // Starts at the index of last initial value above.
    for (const std::string& arg : args) {
        am_args[++am_index] = arg.c_str();