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

Commit 9aa0f65a 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 am: 0f1c381d

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

Change-Id: I690395fa860ec2b76de0f2ad5ff274c281660ec7
parents 41e4a20e 0f1c381d
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();
}