Skip to content

Commit

Permalink
use typedActivity
Browse files Browse the repository at this point in the history
Signed-off-by: alperozturk <[email protected]>
  • Loading branch information
alperozturk96 committed Oct 2, 2024
1 parent 1d6985f commit 9b931fb
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,7 @@ class CreateFolderDialogFragment : DialogFragment(), DialogInterface.OnClickList
}

val path = mParentFolder?.decryptedRemotePath + newFolderName + OCFile.PATH_SEPARATOR
if (requireActivity() is ComponentsGetter) {
(requireActivity() as ComponentsGetter).fileOperationsHelper.createFolder(path)
}
typedActivity<ComponentsGetter>()?.fileOperationsHelper?.createFolder(path)
}
}

Expand Down

0 comments on commit 9b931fb

Please sign in to comment.