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

Commit 74d9d05b authored by Josh Gao's avatar Josh Gao Committed by android-build-merger
Browse files

Merge "adbd_auth: dispatch pending prompts on success."

am: 089d083f

Change-Id: I75ecbef0917e693a4a12826dd61159486a9ce6fd
parents 6458a892 089d083f
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -178,6 +178,10 @@ public:

          this->callbacks_.key_authorized(arg, id);
          this->dispatched_prompt_ = std::nullopt;

          // We need to dispatch pending prompts here upon success as well,
          // since we might have multiple queued prompts.
          DispatchPendingPrompt();
        } else if (packet[0] == 'N' && packet[1] == 'O') {
          CHECK_EQ(2UL, packet.length());
          // TODO: Do we want a callback if the key is denied?