Notification
This commit is contained in:
@@ -164,7 +164,7 @@ class SurfaceRenderer(
|
||||
|
||||
virtualDisplay = carContext.getSystemService(DisplayManager::class.java)
|
||||
.createVirtualDisplay(
|
||||
"Maps",
|
||||
"Navigation",
|
||||
surfaceContainer.width,
|
||||
surfaceContainer.height,
|
||||
surfaceContainer.dpi,
|
||||
@@ -408,9 +408,11 @@ class SurfaceRenderer(
|
||||
* Sets route data for active navigation and switches to VIEW mode.
|
||||
*/
|
||||
fun setRouteData(routeGeoJson: String) {
|
||||
synchronized(this) {
|
||||
routeData.value = routeGeoJson
|
||||
viewStyle = ViewStyle.VIEW
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Activates navigation View
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="960"
|
||||
android:viewportHeight="960"
|
||||
android:tint="?attr/colorControlNormal">
|
||||
<path
|
||||
android:fillColor="@android:color/white"
|
||||
android:pathData="M360,240L440,240L440,160L360,160L360,240ZM520,240L520,160L600,160L600,240L520,240ZM360,560L360,480L440,480L440,560L360,560ZM680,400L680,320L760,320L760,400L680,400ZM680,560L680,480L760,480L760,560L680,560ZM520,560L520,480L600,480L600,560L520,560ZM680,240L680,160L760,160L760,240L680,240ZM440,320L440,240L520,240L520,320L440,320ZM200,800L200,160L280,160L280,240L360,240L360,320L280,320L280,400L360,400L360,480L280,480L280,800L200,800ZM600,480L600,400L680,400L680,480L600,480ZM440,480L440,400L520,400L520,480L440,480ZM360,400L360,320L440,320L440,400L360,400ZM520,400L520,320L600,320L600,400L520,400ZM600,320L600,240L680,240L680,320L600,320Z"/>
|
||||
</vector>
|
||||
Reference in New Issue
Block a user