2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-08-30 21:55:10 +00:00

revert: restore codes that have been changed by mistake

This commit is contained in:
ShellWen Chen
2024-07-16 19:50:24 +08:00
committed by Albert Vaca Cintora
parent 30cc95713f
commit 0ab4e0d1d2

View File

@@ -389,10 +389,14 @@ class SafFileSystemProvider(
): V? {
check(path is SafPath)
if (path.isRoot()) {
if (type == BasicFileAttributeView::class.java || type == PosixFileAttributeView::class.java) {
if (type == BasicFileAttributeView::class.java) {
@Suppress("UNCHECKED_CAST")
return RootBasicFileAttributeView as V
}
if (type == PosixFileAttributeView::class.java) {
@Suppress("UNCHECKED_CAST")
return RootPosixFileAttributeView as V
}
}
if (type == BasicFileAttributeView::class.java) {