[6.2.6] fix bug of roma view visible problem
This commit is contained in:
@@ -34,6 +34,8 @@ class RomaPassengerView @JvmOverloads constructor(
|
||||
private var openRes: Int = 0
|
||||
private var normalRes: Int = 0
|
||||
|
||||
private var controlVisible = false
|
||||
|
||||
init {
|
||||
if(DeviceUtils.isLenovoModel() || DeviceUtils.isEB5Model()){
|
||||
LayoutInflater.from(context).inflate(R.layout.view_roma_passenger_bg, this, true)
|
||||
@@ -71,6 +73,9 @@ class RomaPassengerView @JvmOverloads constructor(
|
||||
override fun romaViewStatus(status: Boolean) {
|
||||
ThreadUtils.runOnUiThread {
|
||||
if(status){
|
||||
if(!controlVisible){
|
||||
return@runOnUiThread
|
||||
}
|
||||
this.visibility = View.VISIBLE
|
||||
} else {
|
||||
this.visibility = View.GONE
|
||||
@@ -82,6 +87,7 @@ class RomaPassengerView @JvmOverloads constructor(
|
||||
* 外部调用visible时进行判断
|
||||
*/
|
||||
fun updateVisible(visible: Boolean){
|
||||
controlVisible = visible
|
||||
if(visible){
|
||||
if(CallerMapRomaListener.isRange()){
|
||||
this.visibility = View.VISIBLE
|
||||
|
||||
Reference in New Issue
Block a user