[6.4.0][启自驾指引] 修正状态栏轨迹下载状态未展示

This commit is contained in:
renwj
2024-04-25 15:32:50 +08:00
parent 6c83d9f7e1
commit e3a65db411

View File

@@ -69,10 +69,12 @@ class StatusBarView @JvmOverloads constructor(
routeDownloadStatusRoot?.visibility = View.GONE
}
1 -> {
routeDownloadStatusRoot?.visibility = View.VISIBLE
routeDownloadStatus?.background = ContextCompat.getDrawable(context, R.drawable.bg_autopilot_route_download_start)
routeDownloadFailMark?.visibility = View.GONE
}
2 -> {
routeDownloadStatusRoot?.visibility = View.VISIBLE
routeDownloadStatus?.background = ContextCompat.getDrawable(context, R.drawable.bg_autopilot_route_download_success)
routeDownloadFailMark?.visibility = View.GONE
scope.launch {
@@ -81,6 +83,7 @@ class StatusBarView @JvmOverloads constructor(
}
}
3 -> {
routeDownloadStatusRoot?.visibility = View.VISIBLE
routeDownloadStatus?.background = ContextCompat.getDrawable(context, R.drawable.bg_autopilot_route_download_failed)
routeDownloadFailMark?.visibility = View.VISIBLE
}