Merge "Always flush batch before stopping" into tm-dev

This commit is contained in:
TreeHugger Robot
2022-03-11 00:41:25 +00:00
committed by Android (Google) Code Review

View File

@@ -1184,6 +1184,7 @@ public class GnssLocationProvider extends AbstractLocationProvider implements
mAlarmManager.cancel(mBatchingAlarm);
mBatchingAlarm = null;
}
mGnssNative.flushBatch();
mGnssNative.stopBatch();
mBatchingStarted = false;
}