Skip to content

Commit c710c23

Browse files
author
Andrey
committed
Remove redundant folder check in open SMBFileHolder
Folders are already filtered in the files list, making this check unnecessary. This function is only invoked for files, not folders.
1 parent fb2487d commit c710c23

File tree

1 file changed

+1
-9
lines changed
  • app/src/main/java/com/raival/compose/file/explorer/screen/main/tab/files/holder

1 file changed

+1
-9
lines changed

app/src/main/java/com/raival/compose/file/explorer/screen/main/tab/files/holder/SMBFileHolder.kt

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -190,15 +190,7 @@ class SMBFileHolder(
190190
}
191191

192192
override fun open(context: Context, anonymous: Boolean, skipSupportedExtensions: Boolean, customMimeType: String?) {
193-
if(isFolder)
194-
globalClass.mainActivityManager.replaceCurrentTabWith(FilesTab(this))
195-
else{
196-
Toast.makeText(
197-
context,
198-
"Not yet implemented",
199-
Toast.LENGTH_LONG
200-
).show()
201-
}
193+
202194
}
203195

204196
override suspend fun getContentCount(): ContentCount = ContentCount(fileCount, folderCount)

0 commit comments

Comments
 (0)