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

Commit 69b479a4 authored by Abhijeet Kaur's avatar Abhijeet Kaur
Browse files

Do not send finished broadcasts when called by API

Bug: 137825297
Test: builds and takes bugreports
Change-Id: I7a393ac928098f147362dd6e728e740cfe2d4ca3
parent 20b707d9
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -2708,7 +2708,7 @@ Dumpstate::RunStatus Dumpstate::RunInternal(int32_t calling_uid,
    }
    }


    /* tell activity manager we're done */
    /* tell activity manager we're done */
    if (options_->do_broadcast) {
    if (options_->do_broadcast && !CalledByApi()) {
        SendBugreportFinishedBroadcast();
        SendBugreportFinishedBroadcast();
        // Note that listener_ is notified in Run();
        // Note that listener_ is notified in Run();
    }
    }