From 552ee00223608343826919ba07a327a79451f9be Mon Sep 17 00:00:00 2001 From: marktoo <18910103220@189.cn> Date: Mon, 12 Apr 2021 14:48:39 +0800 Subject: [PATCH] Update PictureImageGridAdapter.java MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 增加item mask 状态重置,以便单选图片,出现mask后无法预览其他图片为. --- .../com/luck/picture/lib/adapter/PictureImageGridAdapter.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/picture_library/src/main/java/com/luck/picture/lib/adapter/PictureImageGridAdapter.java b/picture_library/src/main/java/com/luck/picture/lib/adapter/PictureImageGridAdapter.java index b72f9fb3b..f19378bd4 100644 --- a/picture_library/src/main/java/com/luck/picture/lib/adapter/PictureImageGridAdapter.java +++ b/picture_library/src/main/java/com/luck/picture/lib/adapter/PictureImageGridAdapter.java @@ -366,6 +366,8 @@ private void dispatchHandleMask(ViewHolder contentHolder, LocalMedia item) { item.setMaxSelectEnabledMask(!isSelected && getSelectedSize() == config.maxSelectNum); } } + } else { + item.setMaxSelectEnabledMask(false);// reset mask state } } }