mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-19 11:39:42 +01:00
show reset button on first item of recycler view
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
This commit is contained in:
parent
9f7c899368
commit
6a9211e292
@ -8,6 +8,7 @@
|
||||
package com.nextcloud.talk.adapters
|
||||
|
||||
import android.content.Context
|
||||
import android.view.View
|
||||
import androidx.recyclerview.widget.RecyclerView
|
||||
import com.nextcloud.talk.R
|
||||
import com.nextcloud.talk.databinding.PredefinedStatusBinding
|
||||
@ -23,6 +24,8 @@ class PredefinedStatusViewHolder(private val binding: PredefinedStatusBinding) :
|
||||
binding.icon.text = status.icon
|
||||
binding.name.text = status.message
|
||||
|
||||
binding.resetStatusButton.visibility = if(position == 0) View.VISIBLE else View.GONE
|
||||
|
||||
if (status.clearAt == null) {
|
||||
binding.clearAt.text = context.getString(R.string.dontClear)
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user