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

Commit 4f9fe84d authored by Yu-Han Yang's avatar Yu-Han Yang Committed by Android (Google) Code Review
Browse files

Merge "Return an empty batch when there is no location to return"

parents 71d51acb e7b8ac38
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -78,9 +78,6 @@ ndk::ScopedAStatus GnssBatching::start(int64_t periodNanos, int flags) {

ndk::ScopedAStatus GnssBatching::flush() {
    ALOGD("flush");
    if (mBatchedLocations.empty()) {
        return ndk::ScopedAStatus::ok();
    }
    std::vector<GnssLocation> copy = std::vector<GnssLocation>(mBatchedLocations);
    ndk::ScopedAStatus status;
    if (sCallback != nullptr) {