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

Commit 2a457dff authored by Steven Moreland's avatar Steven Moreland Committed by android-build-merger
Browse files

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

am: dc7b3aad

Change-Id: I8efdabefeb4241acf486ea3645f539ac3fcbd7c3
parents 9e1b5634 dc7b3aad
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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();