Skip to content

Commit

Permalink
修复sheetList设置错误
Browse files Browse the repository at this point in the history
  • Loading branch information
shaoshuai904 committed Aug 13, 2020
1 parent d26de33 commit 763419d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/src/main/java/com/maple/iosdialog/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -173,10 +173,10 @@ class MainActivity : Activity() {
fun aslList(view: View?) {
if (asl1 == null) {
asl1 = ActionSheetListDialog(this).apply {
setCancelText("取消")
addSheetItems(getSingleSelectItemTestData(2), OnSheetItemClickListener { item, position ->
showToast(item.getShowName())
})
setCancelText("取消")
}
}
asl1?.show()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ class ActionSheetListDialog(
spSize: Float = config.cancelTextSizeSp,
isBold: Boolean = false
): ActionSheetListDialog {
config.showTitle = true
config.showCancel = true
binding.tvCancel.apply {
text = cancelText
setTextColor(color)
Expand Down

0 comments on commit 763419d

Please sign in to comment.