visitType string refactor, visual bugfix
This commit is contained in:
parent
f3dc93050e
commit
60e052406f
@ -40,8 +40,8 @@ class VisitAdapter : PagingDataAdapter<VisitDto, VisitAdapter.ViewHolder>(VisitD
|
||||
) : RecyclerView.ViewHolder(binding.root) {
|
||||
fun bind(item: VisitDto) {
|
||||
binding.scanTime.text = "${formatDate(item.createdAt)}"
|
||||
binding.scannerId.text = "Id турникета - " + item.gateId.toString()
|
||||
binding.passType.text = "Тип прохода - " + item.visitType.toString()
|
||||
binding.scannerId.text = "Идентификатор турникета - " + item.gateId.toString()
|
||||
binding.passType.text = "Тип прохода - " + if(item.visitType == VisitType.APP) "Приложение" else "Карта"
|
||||
}
|
||||
|
||||
private fun formatDate(inputDate: String): String {
|
||||
|
@ -87,6 +87,7 @@ class ProfileFragment : Fragment(R.layout.fragment_profile) {
|
||||
}
|
||||
private fun updateRights(isACSBlocked: Boolean){
|
||||
binding.changeRights.text = if(isACSBlocked) "Разблокировать пользователя" else "Заблокировать пользователя"
|
||||
binding.rightsUsingSmartphone.text = if(isACSBlocked) "Пропуск недействителен" else "Пропуск действителен"
|
||||
}
|
||||
|
||||
private fun showData(userDTO: UserDTO) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user