Advertisement
Smile_Studio

check status YCBL

Jul 7th, 2020
1,531
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Kotlin 0.50 KB | None | 0 0
  1. when (mData?.get(position)?.status) {
  2.             "1" -> {
  3.                 holder.control.visibility = View.GONE
  4.             }
  5.             else -> {
  6.                 holder.control.visibility = View.VISIBLE
  7.                 if (mData?.get(position)?.idApprove.equals(GlobalApp.getInstance().profile?.uid)) {
  8.                     holder.btn_guarantee.visibility = View.VISIBLE
  9.                 } else {
  10.                     holder.btn_guarantee.visibility = View.GONE
  11.                 }
  12.             }
  13.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement