Merge branch 'dev_robobus-d_241202_6.8.4' into dev_robobus-d_241202_6.8.4_autopilot
This commit is contained in:
@@ -119,7 +119,7 @@ class LoginProvider : LoginService {
|
|||||||
}
|
}
|
||||||
if (loginFragment is ILoginViewCallback) {
|
if (loginFragment is ILoginViewCallback) {
|
||||||
UiThreadHandler.post({
|
UiThreadHandler.post({
|
||||||
if (loginFragment!!.isAdded) {
|
if (loginFragment?.isAdded==true) {
|
||||||
(loginFragment as ILoginViewCallback).showErrorInfo(businessInfo)
|
(loginFragment as ILoginViewCallback).showErrorInfo(businessInfo)
|
||||||
}
|
}
|
||||||
},UiThreadHandler.MODE.QUEUE)
|
},UiThreadHandler.MODE.QUEUE)
|
||||||
@@ -142,7 +142,7 @@ class LoginProvider : LoginService {
|
|||||||
changeStatus(checkAllEnv)
|
changeStatus(checkAllEnv)
|
||||||
UiThreadHandler.post({
|
UiThreadHandler.post({
|
||||||
changeStatus(checkAllEnv)
|
changeStatus(checkAllEnv)
|
||||||
if (loginFragment!!.isAdded) {
|
if (loginFragment?.isAdded==true) {
|
||||||
(loginFragment as ILoginViewCallback).checkAllEnv(checkAllEnv)
|
(loginFragment as ILoginViewCallback).checkAllEnv(checkAllEnv)
|
||||||
}
|
}
|
||||||
},UiThreadHandler.MODE.QUEUE)
|
},UiThreadHandler.MODE.QUEUE)
|
||||||
@@ -153,7 +153,7 @@ class LoginProvider : LoginService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
override fun changeStatus(currentStatus: String) {
|
override fun changeStatus(currentStatus: String) {
|
||||||
if (loginFragment!!.isAdded) {
|
if (loginFragment?.isAdded==true) {
|
||||||
(loginFragment as ILoginViewCallback).updateStatus(currentStatus)
|
(loginFragment as ILoginViewCallback).updateStatus(currentStatus)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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 {
|
fun getTaskTime():String {
|
||||||
return DateTimeUtil.formatLongToString(
|
return DateTimeUtil.formatLongToString(
|
||||||
currentTask?.taskStartTime?:System.currentTimeMillis(),
|
currentTask?.taskStartTime?:System.currentTimeMillis(),
|
||||||
|
|||||||
@@ -111,7 +111,7 @@ object ThirdDeviceData {
|
|||||||
lineInfo.lineName,
|
lineInfo.lineName,
|
||||||
start.name,
|
start.name,
|
||||||
end.name,
|
end.name,
|
||||||
LineModel.isLastStation() == true
|
LineModel.isLastStation(end)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user