Skip to content
This repository has been archived by the owner on Jan 6, 2024. It is now read-only.

Commit

Permalink
Remove trailing list item action
Browse files Browse the repository at this point in the history
  • Loading branch information
kylecorry31 committed Jan 8, 2023
1 parent ce8b895 commit 902cecd
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ buildscript {
classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.20'
}
ext.groupId = 'com.kylecorry.ceres'
ext.versionName = '0.1.9'
ext.andromedaVersion = '5.0.0-beta23'
ext.versionName = '0.2.0'
ext.andromedaVersion = '5.0.0-beta26'
ext.targetVersion = 33
ext.compileVersion = 33
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ class CeresListView(context: Context, attrs: AttributeSet?) : RecyclerView(conte
binding.icon.isVisible = listItem.icon != null
listItem.icon?.apply(binding.icon)
binding.trailingIconBtn.isVisible = listItem.trailingIcon != null
binding.trailingIconBtn.setOnClickListener { listItem.trailingIconAction() }
listItem.trailingIcon?.apply(binding.trailingIconBtn)
if (listItem.menu.isNotEmpty()) {
binding.menuBtn.isVisible = true
Expand Down
1 change: 0 additions & 1 deletion list/src/main/java/com/kylecorry/ceres/list/ListItem.kt
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ data class ListItem(
val data: List<ListItemData> = emptyList(),
val trailingText: CharSequence? = null,
val trailingIcon: ListIcon? = null,
val trailingIconAction: () -> Unit = {},
val menu: List<ListMenuItem> = emptyList(),
val longClickAction: () -> Unit = {},
val action: () -> Unit = {}
Expand Down

0 comments on commit 902cecd

Please sign in to comment.