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

Commit 418bee74 authored by Jakub Pawlowski's avatar Jakub Pawlowski Committed by android-build-merger
Browse files

Merge "Fix Bluetooth crash on user switching" am: 338b4304 am: 20a8f882

am: 8e953af4

Change-Id: I5c738b8218b284267f53029ae91cee65a3ec83a9
parents 2ca79cb4 8e953af4
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);
                          }
                        }));
}