Smile_Studio

check status YCBL

Jul 7th, 2020
1,318
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.         }
RAW Paste Data