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

Commit e93dc12c authored by Yuyang Huang's avatar Yuyang Huang Committed by Automerger Merge Worker
Browse files

Merge "Set SCO state correctly on rfcomm disconnect" into main am: c5d3cb20

parents 0e8a69e6 c5d3cb20
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -811,6 +811,10 @@ static void bta_ag_sco_event(tBTA_AG_SCB* p_scb, uint8_t event) {
          /* If last SCO instance then finish shutting down */
          if (!bta_ag_other_scb_open(p_scb)) {
            p_sco->state = BTA_AG_SCO_SHUTDOWN_ST;
          } else if (com::android::bluetooth::flags::
                             update_sco_state_correctly_on_rfcomm_disconnect_during_codec_nego()) {
            /* just go back to listening */
            p_sco->state = BTA_AG_SCO_LISTEN_ST;
          }
          break;