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
diff --git a/cmds/dumpstate/dumpstate.cpp b/cmds/dumpstate/dumpstate.cpp
index 7d6dc4c..75a0915 100644
--- a/cmds/dumpstate/dumpstate.cpp
+++ b/cmds/dumpstate/dumpstate.cpp
@@ -2538,7 +2538,7 @@
// 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;