Skip to content

Commit 75cb7e8

Browse files
committed
formatting fixes
1 parent fd9c32d commit 75cb7e8

File tree

1 file changed

+4
-7
lines changed
  • display-device-location-with-nmea-data-sources/src/main/java/com/esri/arcgismaps/sample/displaydevicelocationwithnmeadatasources

1 file changed

+4
-7
lines changed

display-device-location-with-nmea-data-sources/src/main/java/com/esri/arcgismaps/sample/displaydevicelocationwithnmeadatasources/MainActivity.kt

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -198,11 +198,10 @@ class MainActivity : AppCompatActivity() {
198198
timer = Timer()
199199
timer.schedule(timerTask {
200200
// only push data when started
201-
if (nmeaLocationDataSource.status.value == LocationDataSourceStatus.Started) nmeaLocationDataSource.pushData(
202-
nmeaSentences[locationIndex++].toByteArray(
203-
StandardCharsets.UTF_8
201+
if (nmeaLocationDataSource.status.value == LocationDataSourceStatus.Started)
202+
nmeaLocationDataSource.pushData(
203+
nmeaSentences[locationIndex++].toByteArray(StandardCharsets.UTF_8)
204204
)
205-
)
206205
// reset the location index after the last data point is reached
207206
if (locationIndex == nmeaSentences.size) locationIndex = 0
208207
}, 250, 250)
@@ -250,8 +249,7 @@ class MainActivity : AppCompatActivity() {
250249
val uniqueSatelliteIDs = mutableListOf<Int>()
251250
var satelliteSystems = ""
252251
// set the text of the satellite count label
253-
satelliteCountTV.text =
254-
getString(R.string.satellite_count) + nmeaSatelliteInfoList.size
252+
satelliteCountTV.text = getString(R.string.satellite_count) + nmeaSatelliteInfoList.size
255253
// get the system of the first satellite
256254
when (nmeaSatelliteInfoList.first().system) {
257255
NmeaGnssSystem.Bds -> {
@@ -284,7 +282,6 @@ class MainActivity : AppCompatActivity() {
284282
systemTypeTV.text = getString(R.string.system) + satelliteSystems
285283
satelliteIDsTV.text = getString(R.string.satellite_ids) + uniqueSatelliteIDs
286284
}
287-
288285
}
289286

290287
/**

0 commit comments

Comments
 (0)