Skip to content

Commit 1fccb1a

Browse files
readonly时不显示追加
1 parent 13d7f4c commit 1fccb1a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

picker/src/main/java/pizzk/media/picker/adapter/PhotoGroupAdapter.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ class PhotoGroupAdapter(context: Context, fixedList: List<PhotoItem>?, lp: ViewG
6969
getList().add(PhotoItem(path = list[i]))
7070
}
7171
//判断是否还可选
72-
if (getList().size < limit) {
72+
if (!readOnly && getList().size < limit) {
7373
getList().add(PhotoItem())
7474
}
7575
notifyDataSetChanged()

0 commit comments

Comments
 (0)