[6.7.0][启自驾指引] 优化代码逻辑
This commit is contained in:
@@ -233,17 +233,19 @@ object StatusManager {
|
||||
}
|
||||
}?.forEachIndexed { index, status ->
|
||||
val shl = 1 shl index
|
||||
xor = if (status is RouteDownloadStatus) {
|
||||
if (status.state == RouteStart) {
|
||||
if (status.isException()) {
|
||||
xor = if (status is RouteDownloadStatus) {
|
||||
if (status.state == RouteStart) {
|
||||
xor or shl
|
||||
} else {
|
||||
xor or (shl shl 1)
|
||||
}
|
||||
} else {
|
||||
if (status is OtherErrorStatus) {
|
||||
CallerDevaToolsManager.getExtra().putString(R.id.autopilot_start_error.toString(), status.reason?.getUnableLaunchReason())
|
||||
}
|
||||
xor or shl
|
||||
} else {
|
||||
xor or (shl shl 1)
|
||||
}
|
||||
} else {
|
||||
if (status is OtherErrorStatus) {
|
||||
CallerDevaToolsManager.getExtra().putString(R.id.autopilot_start_error.toString(), status.reason?.getUnableLaunchReason())
|
||||
}
|
||||
xor or shl
|
||||
}
|
||||
}
|
||||
return xor
|
||||
|
||||
Reference in New Issue
Block a user