mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 11:36:00 +00:00
Return an empty batch when there is no location to return
Bug: 205200767 Test: atest LocationManagerFineTest#testRequestFlush_Gnss Change-Id: I98841f1e83e39289f0e09517d572041ecb058d07
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user