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

Commit 0f1c381d authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "btaa: null check btaa instance when receiving callback from...

Merge "btaa: null check btaa instance when receiving callback from SystemSuspend" am: e7346e17 am: fff9547d am: b4388dba

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1501012

Change-Id: I4ab592748db7195f3e5ea38e4553528a91cdaca7
parents a87fe51f b4388dba
Loading
Loading
Loading
Loading
+9 −3
Original line number Diff line number Diff line
@@ -69,18 +69,24 @@ void ActivityAttributionImpl::onWakeup(
    bool success, const std::vector<std::string>& wakeupReasons) {}

Status WakelockCallback::notifyAcquired(void) {
  if (instance) {
    instance->onWakelockAcquired();
  }
  return Status::ok();
}

Status WakelockCallback::notifyReleased(void) {
  if (instance) {
    instance->onWakelockReleased();
  }
  return Status::ok();
}

Status WakeupCallback::notifyWakeup(
    bool success, const std::vector<std::string>& wakeupReasons) {
  if (instance) {
    instance->onWakeup(success, wakeupReasons);
  }
  return Status::ok();
}