Skip to content

Commit a5a9a65

Browse files
committed
Убраны поля которые нельзя вызвать в 24 API Android
1 parent 8925e01 commit a5a9a65

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

app/src/main/java/ru/spektrit/androidsensorsdemo/SensorViewModel.kt

-2
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,7 @@ class SensorViewModel : ViewModel() {
5252
altitude = location.altitude,
5353
gpsAccuracy = location.accuracy,
5454
gpsSpeed = location.speed,
55-
gpsSpeedAccuracyMetSec = location.speedAccuracyMetersPerSecond,
5655
gpsBearing = location.bearing,
57-
gpsBearingAccuracyDeg = location.bearingAccuracyDegrees,
5856
accelerometer = sensorFlows[SensorType.ACCELEROMETER]!!.value.joinToString(" "),
5957
orientation = sensorFlows[SensorType.ORIENTATION]!!.value.joinToString(" "),
6058
gyroscope = sensorFlows[SensorType.GYROSCOPE]!!.value.joinToString(" "),

app/src/main/java/ru/spektrit/androidsensorsdemo/database/entities/SensorsData.kt

-2
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ data class SensorsData(
1212
val altitude : Double,
1313
val gpsAccuracy : Float,
1414
val gpsSpeed : Float,
15-
val gpsSpeedAccuracyMetSec : Float,
1615
val gpsBearing : Float,
17-
val gpsBearingAccuracyDeg : Float,
1816
val accelerometer : String,
1917
val orientation : String,
2018
val gyroscope : String,

0 commit comments

Comments
 (0)