Merge branch 'dev_robobus-d_241202_6.8.4' into dev_robobus-d_241202_6.8.4_autopilot

This commit is contained in:
xyz
2025-01-02 10:12:27 +08:00
3 changed files with 13 additions and 4 deletions

View File

@@ -119,7 +119,7 @@ class LoginProvider : LoginService {
}
if (loginFragment is ILoginViewCallback) {
UiThreadHandler.post({
if (loginFragment!!.isAdded) {
if (loginFragment?.isAdded==true) {
(loginFragment as ILoginViewCallback).showErrorInfo(businessInfo)
}
},UiThreadHandler.MODE.QUEUE)
@@ -142,7 +142,7 @@ class LoginProvider : LoginService {
changeStatus(checkAllEnv)
UiThreadHandler.post({
changeStatus(checkAllEnv)
if (loginFragment!!.isAdded) {
if (loginFragment?.isAdded==true) {
(loginFragment as ILoginViewCallback).checkAllEnv(checkAllEnv)
}
},UiThreadHandler.MODE.QUEUE)
@@ -153,7 +153,7 @@ class LoginProvider : LoginService {
}
override fun changeStatus(currentStatus: String) {
if (loginFragment!!.isAdded) {
if (loginFragment?.isAdded==true) {
(loginFragment as ILoginViewCallback).updateStatus(currentStatus)
}
}

View File

@@ -304,6 +304,15 @@ object LineModel {
}
fun isLastStation(end: BusStationBean):Boolean{
return if (stationList.isNullOrEmpty()) {
false
}else{
val last = stationList?.last()
return last==end
}
}
fun getTaskTime():String {
return DateTimeUtil.formatLongToString(
currentTask?.taskStartTime?:System.currentTimeMillis(),

View File

@@ -111,7 +111,7 @@ object ThirdDeviceData {
lineInfo.lineName,
start.name,
end.name,
LineModel.isLastStation() == true
LineModel.isLastStation(end)
)
}
}