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

Commit aac6f584 authored by Nandana Dutt's avatar Nandana Dutt
Browse files

Delete local bugreport when consent is denied

Fix the typo which made us skip deletion of local files when consent is
denied.

BUG: 138431446
Test: Invoked the API via a test app and ensured the files in
/bugreports are deleted now when consent is denied early on.

Change-Id: Ic4ad6ef84613562e21e98b6160d6aa9c71071253
parent a53145a6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2538,7 +2538,7 @@ Dumpstate::RunStatus Dumpstate::RunInternal(int32_t calling_uid,
        // Dump state for the default case. This also drops root.
        RunStatus s = DumpstateDefault();
        if (s != RunStatus::OK) {
            if (s == RunStatus::USER_CONSENT_TIMED_OUT) {
            if (s == RunStatus::USER_CONSENT_DENIED) {
                HandleUserConsentDenied();
            }
            return s;