diff --git a/app/src/main/java/com/keylesspalace/tusky/components/scheduled/ScheduledStatusAdapter.kt b/app/src/main/java/com/keylesspalace/tusky/components/scheduled/ScheduledStatusAdapter.kt index 7b34b780..9d51bc53 100644 --- a/app/src/main/java/com/keylesspalace/tusky/components/scheduled/ScheduledStatusAdapter.kt +++ b/app/src/main/java/com/keylesspalace/tusky/components/scheduled/ScheduledStatusAdapter.kt @@ -16,7 +16,6 @@ package com.keylesspalace.tusky.components.scheduled import android.view.LayoutInflater -import android.view.View import android.view.ViewGroup import androidx.paging.PagingDataAdapter import androidx.recyclerview.widget.DiffUtil @@ -53,8 +52,7 @@ class ScheduledStatusAdapter( holder.binding.edit.isEnabled = true holder.binding.delete.isEnabled = true holder.binding.text.text = item.params.text - holder.binding.edit.setOnClickListener { v: View -> - v.isEnabled = false + holder.binding.edit.setOnClickListener { listener.edit(item) } holder.binding.delete.setOnClickListener {