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

Commit 20a8f882 authored by Jakub Pawlowski's avatar Jakub Pawlowski Committed by android-build-merger
Browse files

Merge "Fix Bluetooth crash on user switching"

am: 338b4304

Change-Id: Iee0f6698d762c0a88d5140c3fd9a9893c7370aaf
parents 20efcf3f 338b4304
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -182,8 +182,12 @@ void bta_hh_le_enable(void) {
                            bta_hh_cb.gatt_if = BTA_GATTS_INVALID_IF;
                          }

                          /* null check is needed in case HID profile is shut
                           * down before BTA_GATTC_AppRegister is done */
                          if (bta_hh_cb.p_cback) {
                            /* signal BTA call back event */
                            (*bta_hh_cb.p_cback)(BTA_HH_ENABLE_EVT, &bta_hh);
                          }
                        }));
}