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

Commit fff9547d 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 SystemSuspend" am: e7346e17

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

Change-Id: I94b071811ed85a3f2603eb66de2e0f83563ce725
parents 56f92c32 e7346e17
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();
}