[fea]
[all]
[访客模式标识]
This commit is contained in:
yangyakun
2024-12-26 17:31:22 +08:00
parent 434d781511
commit 75f557ed6d
12 changed files with 73 additions and 12 deletions

View File

@@ -7,6 +7,7 @@ import androidx.constraintlayout.widget.ConstraintLayout
import com.mogo.commons.debug.DebugConfig
import com.mogo.commons.storage.SharedPrefsMgr
import com.mogo.eagle.core.data.app.AppConfigInfo
import com.mogo.eagle.core.data.config.FunctionBuildConfig
import com.mogo.eagle.core.function.api.autopilot.IMoGoAutopilotStatusListener
import com.mogo.eagle.core.function.api.datacenter.IDataCenterBizListener
import com.mogo.eagle.core.function.api.devatools.IMoGoDevaToolsListener
@@ -154,6 +155,14 @@ class CarInfoTabView @JvmOverloads constructor(
MogoData.mogoMapData.get()?.isCityDataCached {
updateHDDataCacheStatus(it)
}
if(FunctionBuildConfig.isOffLine){
tvCarLoginInfo.visibility = VISIBLE
tvCarLoginInfo.text = resources.getString(R.string.tab_login_norphone)
tvCarLoginInfo.setTextColor(resources.getColor(R.color.color_FFFFCD3D))
tvCarExit.text = resources.getString(R.string.tab_login_gophone)
tvCarExit.setTextColor(resources.getColor(R.color.color_FF2EACFF))
}
}
private fun showCurrentPadVersion() {
@@ -168,6 +177,13 @@ class CarInfoTabView @JvmOverloads constructor(
} else {
tvCarLoginInfo.text = ""
}
if(FunctionBuildConfig.isOffLine){
tvCarLoginInfo.visibility = VISIBLE
tvCarLoginInfo.text = resources.getString(R.string.tab_login_norphone)
tvCarLoginInfo.setTextColor(resources.getColor(R.color.color_FFFFCD3D))
tvCarExit.text = resources.getString(R.string.tab_login_gophone)
tvCarExit.setTextColor(resources.getColor(R.color.color_FF2EACFF))
}
}
}

View File

@@ -45,6 +45,7 @@
<color name="color_E6FFFFFF">#E6FFFFFF</color>
<color name="color_D945D3FF">#D945D3FF</color>
<color name="color_D93261B6">#D93261B6</color>
<color name="color_FFFFCD3D">#FFCD3D</color>
<color name="background_wtf">#FF999900</color>
<color name="background_error">#FFCC0000</color>

View File

@@ -14,6 +14,8 @@
<string name="tab_version_hdmap_info">HDMAP</string>
<string name="tab_version_admap_info">ADMAP</string>
<string name="tab_version_update">检查更新</string>
<string name="tab_login_norphone"> 访客(未登录)</string>
<string name="tab_login_gophone">登录</string>
<string name="log_min">最小化</string>
<string name="log_info">日志</string>