From 46b2fbb594a72e56595d5f6a939b681e780c10b1 Mon Sep 17 00:00:00 2001 From: renwj Date: Thu, 24 Oct 2024 11:02:07 +0800 Subject: [PATCH] =?UTF-8?q?[6.7.0][=E5=90=AF=E8=87=AA=E9=A9=BE=E6=8C=87?= =?UTF-8?q?=E5=BC=95]=20=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81=E9=80=BB?= =?UTF-8?q?=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../status/StatusManager.kt | 20 ++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/core/function-impl/mogo-core-function-devatools/src/main/java/com/zhjt/mogo_core_function_devatools/status/StatusManager.kt b/core/function-impl/mogo-core-function-devatools/src/main/java/com/zhjt/mogo_core_function_devatools/status/StatusManager.kt index ae537d9f58..9575316ac7 100644 --- a/core/function-impl/mogo-core-function-devatools/src/main/java/com/zhjt/mogo_core_function_devatools/status/StatusManager.kt +++ b/core/function-impl/mogo-core-function-devatools/src/main/java/com/zhjt/mogo_core_function_devatools/status/StatusManager.kt @@ -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