修改模拟器列表页由于复用产生的错误点击问题
This commit is contained in:
@ -30,8 +30,8 @@ class SimulatorManagementAdapter(context: Context) : ListAdapter<SimulatorEntity
|
||||
val shouldShowUpdate = Version(simulator.apk?.version).isHigherThan(versionFromInstalledApp)
|
||||
text = if (shouldShowUpdate) "更新" else "已安装"
|
||||
setTextColor(if (shouldShowUpdate) R.color.theme.toColor() else R.color.text_999999.toColor())
|
||||
if (shouldShowUpdate) {
|
||||
setOnClickListener {
|
||||
setOnClickListener {
|
||||
if (shouldShowUpdate) {
|
||||
SimulatorDownloadManager.getInstance().showDownloadDialog(context, simulator, SimulatorDownloadManager.SimulatorLocation.SIMULATOR_MANAGE)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user