Skip to content

Commit c3a3d43

Browse files
authored
Merge pull request #722 from yhs0602/copilot/fix-crash-report-issues
Prevent `FileItem` lazy delegate serialization crash in file chooser result flow
2 parents eddd304 + 474233a commit c3a3d43

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • app/src/main/java/com/kyhsgeekcode/filechooser/model

app/src/main/java/com/kyhsgeekcode/filechooser/model/FileItem.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ open class FileItem : Serializable {
5454
var file: File? = null // 항목이 의미하는 파일 자체
5555
// protected var backFile: File? = null // 항목이 전개되었을 때 나타낼 디렉토리
5656

57+
@delegate:Transient
5758
private val isExpandable: Boolean by lazy {
5859
file?.isDirectory == true ||
5960
file?.isArchive() == true ||

0 commit comments

Comments
 (0)