diff --git a/GPSTest/src/main/java/com/android/gpstest/io/CsvFileLogger.java b/GPSTest/src/main/java/com/android/gpstest/io/CsvFileLogger.java index 8c79f3449..528683b0f 100644 --- a/GPSTest/src/main/java/com/android/gpstest/io/CsvFileLogger.java +++ b/GPSTest/src/main/java/com/android/gpstest/io/CsvFileLogger.java @@ -219,7 +219,7 @@ public synchronized void onGnssStatusChanged(List statuses, Loc int i = 0; for (SatelliteStatus s : statuses) { try { - writeStatusToFile(s, location != null ? location.getTime() : 0, i, statuses.size()); + writeStatusToFile(s, location != null ? location.getTime() : 0, statuses.size(), i); } catch (IOException e) { logException(Application.Companion.getApp().getString(R.string.error_writing_file), e); }