@iternio/react-native-auto-play 0.1.12 → 0.1.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -5,6 +5,7 @@ import android.graphics.Color
|
|
|
5
5
|
import androidx.car.app.AppManager
|
|
6
6
|
import androidx.car.app.CarContext
|
|
7
7
|
import androidx.car.app.model.Action
|
|
8
|
+
import androidx.car.app.model.ActionStrip
|
|
8
9
|
import androidx.car.app.model.Alert
|
|
9
10
|
import androidx.car.app.model.AlertCallback
|
|
10
11
|
import androidx.car.app.model.CarColor
|
|
@@ -75,6 +76,12 @@ class MapTemplate(
|
|
|
75
76
|
}
|
|
76
77
|
config.headerActions?.let { headerActions ->
|
|
77
78
|
setActionStrip(Parser.parseMapHeaderActions(context, headerActions))
|
|
79
|
+
} ?: run {
|
|
80
|
+
setActionStrip(
|
|
81
|
+
ActionStrip.Builder()
|
|
82
|
+
.addAction(Action.APP_ICON)
|
|
83
|
+
.build()
|
|
84
|
+
)
|
|
78
85
|
}
|
|
79
86
|
val travelEstimates =
|
|
80
87
|
if (config.visibleTravelEstimate == VisibleTravelEstimate.FIRST) destinationTravelEstimates.firstOrNull() else destinationTravelEstimates.lastOrNull()
|
|
@@ -409,4 +416,4 @@ class MapTemplate(
|
|
|
409
416
|
}
|
|
410
417
|
}
|
|
411
418
|
}
|
|
412
|
-
}
|
|
419
|
+
}
|