Merge "vibrator impl: log failed callback" am: 362375c48e

am: dc7b3aadf2

Change-Id: I8efdabefeb4241acf486ea3645f539ac3fcbd7c3
This commit is contained in:
Steven Moreland 2019-11-27 18:20:51 -08:00 committed by android-build-merger
commit 2a457dff0d

View file

@ -48,7 +48,9 @@ ndk::ScopedAStatus Vibrator::on(int32_t timeoutMs,
LOG(INFO) << "Starting on on another thread";
usleep(timeoutMs * 1000);
LOG(INFO) << "Notifying on complete";
callback->onComplete();
if (!callback->onComplete().isOk()) {
LOG(ERROR) << "Failed to call onComplete";
}
}).detach();
}
return ndk::ScopedAStatus::ok();