Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
JahidHasanCO committed Sep 1, 2022
1 parent 702bc05 commit 3d0eb52
Showing 1 changed file with 12 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ constructor(context: Context, attrs: AttributeSet? = null) :
markAsBooked(seatViewList[id - 1])
}
}

fun setAvailableIdList(list: List<Int>) {
for (id in list) {
markAsAvailable(seatViewList[id - 1])
Expand All @@ -234,8 +234,8 @@ constructor(context: Context, attrs: AttributeSet? = null) :
bookDrawable = drawable
return this
}
fun setIsOnlyShow(r:Boolean){

fun setIsOnlyShow(r: Boolean) {
isOnlyShow = r
}

Expand Down Expand Up @@ -368,13 +368,18 @@ constructor(context: Context, attrs: AttributeSet? = null) :
}

view.setOnClickListener {
if(!isOnlyShow){
seatClick(it)}
if (!isOnlyShow) {
seatClick(it)
}
}

view.setOnLongClickListener {
if(!isOnlyShow){
seatLongClick(it)}
if (!isOnlyShow) {
seatLongClick(it)
true
} else {
false
}
}

}
Expand Down

0 comments on commit 3d0eb52

Please sign in to comment.