NavigationImage and padding
This commit is contained in:
@@ -2,6 +2,6 @@ package com.kouros.navigation.data
|
||||
|
||||
import androidx.compose.ui.graphics.Color
|
||||
|
||||
val NavigationColor = Color(0xFF094DB6)
|
||||
val NavigationColor = Color(0xFF052086)
|
||||
|
||||
val RouteColor = Color(0xFF5582D0)
|
||||
|
||||
@@ -3,6 +3,8 @@ package com.kouros.navigation.utils
|
||||
import android.content.Context
|
||||
import android.location.Location
|
||||
import android.location.LocationManager
|
||||
import android.os.Build
|
||||
import androidx.annotation.RequiresApi
|
||||
import androidx.core.content.edit
|
||||
import com.kouros.navigation.data.Constants.MAXIMAL_ROUTE_DEVIATION
|
||||
import com.kouros.navigation.data.Constants.SHARED_PREF_KEY
|
||||
@@ -43,6 +45,7 @@ object NavigationUtils {
|
||||
.getBoolean(key, false)
|
||||
}
|
||||
|
||||
@RequiresApi(Build.VERSION_CODES.GINGERBREAD)
|
||||
fun setBooleanKeyValue(context: Context, `val`: Boolean, key: String) {
|
||||
context
|
||||
.getSharedPreferences(
|
||||
@@ -64,6 +67,11 @@ object NavigationUtils {
|
||||
val point = pointFeature.geometry() as Point
|
||||
newLocation.latitude = point.latitude()
|
||||
newLocation.longitude = point.longitude()
|
||||
newLocation.speed = location.speed
|
||||
newLocation.bearing = location.bearing
|
||||
newLocation.time = location.time
|
||||
newLocation.accuracy = location.accuracy
|
||||
newLocation.altitude = location.altitude
|
||||
}
|
||||
return newLocation
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user