[6.1.0]
[charter-p] [吐司其他线程无法测量问题]
This commit is contained in:
@@ -91,7 +91,9 @@ object DebugDataDispatch {
|
||||
newBuilder.timestampBuilder.nsec = 0
|
||||
newBuilder.src = "2"
|
||||
newBuilder.level = ""
|
||||
CallerAutoPilotStatusListenerManager.invokeAutopilotGuardian(newBuilder.build())
|
||||
ThreadUtils.getSinglePool().execute {
|
||||
CallerAutoPilotStatusListenerManager.invokeAutopilotGuardian(newBuilder.build())
|
||||
}
|
||||
}
|
||||
carLightSwitch -> {
|
||||
//0-5
|
||||
|
||||
@@ -5,9 +5,13 @@ import android.view.View
|
||||
import androidx.annotation.StringRes
|
||||
import com.mogo.eagle.core.data.config.FunctionBuildConfig
|
||||
import com.mogo.eagle.core.utilcode.mogo.AppIdentityModeUtils
|
||||
import com.mogo.eagle.core.utilcode.mogo.logger.CallerLogger
|
||||
import com.mogo.eagle.core.utilcode.mogo.logger.scene.SceneConstant
|
||||
import com.mogo.eagle.core.utilcode.util.ActivityUtils
|
||||
import com.mogo.eagle.core.utilcode.util.StringUtils
|
||||
import com.mogo.eagle.core.utilcode.util.ToastUtils
|
||||
import com.mogo.eagle.core.utilcode.util.UiThreadHandler
|
||||
import com.mogo.och.common.module.bean.dpmsg.BaseDPMsg
|
||||
import me.jessyan.autosize.utils.AutoSizeUtils
|
||||
|
||||
object ToastCharterUtils {
|
||||
@@ -17,22 +21,28 @@ object ToastCharterUtils {
|
||||
|
||||
@JvmStatic
|
||||
fun showToastLong(toastText: String){
|
||||
if (AppIdentityModeUtils.isCharterPassenger(FunctionBuildConfig.appIdentityMode)) {
|
||||
showCharterLongToast(toastText)
|
||||
}else{
|
||||
ToastUtils.showLong(toastText)
|
||||
}
|
||||
CallerLogger.d(SceneConstant.M_OCHCOMMON + TAG,"showToastLong吐司内容:${toastText}")
|
||||
UiThreadHandler.post( {
|
||||
if (AppIdentityModeUtils.isCharterPassenger(FunctionBuildConfig.appIdentityMode)) {
|
||||
showCharterLongToast(toastText)
|
||||
}else{
|
||||
ToastUtils.showLong(toastText)
|
||||
}
|
||||
}, UiThreadHandler.MODE.QUEUE)
|
||||
}
|
||||
|
||||
@JvmStatic
|
||||
fun showToastShort(toastText: String?){
|
||||
toastText?.let {
|
||||
if (AppIdentityModeUtils.isCharterPassenger(FunctionBuildConfig.appIdentityMode)) {
|
||||
showCharterShortToast(toastText)
|
||||
}else{
|
||||
ToastUtils.showShort(toastText)
|
||||
CallerLogger.d(SceneConstant.M_OCHCOMMON + TAG,"showToastShort吐司内容:${toastText}")
|
||||
UiThreadHandler.post( {
|
||||
toastText?.let {
|
||||
if (AppIdentityModeUtils.isCharterPassenger(FunctionBuildConfig.appIdentityMode)) {
|
||||
showCharterShortToast(toastText)
|
||||
}else{
|
||||
ToastUtils.showShort(toastText)
|
||||
}
|
||||
}
|
||||
}
|
||||
}, UiThreadHandler.MODE.QUEUE)
|
||||
}
|
||||
|
||||
@JvmStatic
|
||||
|
||||
Reference in New Issue
Block a user