Skip to content

Commit 474233a

Browse files
Copilotyhs0602
andcommitted
Fix FileItem serialization crash on chooser return
Co-authored-by: yhs0602 <35697677+yhs0602@users.noreply.github.com>
1 parent 35647f1 commit 474233a

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)