Skip to content

Commit

Permalink
Apply suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
sirambd committed May 30, 2024
1 parent 0fdc58b commit 5519673
Showing 1 changed file with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,13 +82,15 @@ class NewFolderFragment : Fragment() {
}
}

private fun initDropBoxFolder(drive: Drive?) = binding.dropBox.apply {
isVisible = drive?.sharedWithMe != true
setOnClickListener {
safeNavigate(
if (drive?.pack?.capabilities?.useDropbox == true) R.id.createDropBoxFolderFragment
else R.id.dropBoxBottomSheetDialog
)
private fun initDropBoxFolder(drive: Drive?) {
binding.dropBox.apply {
isVisible = drive?.sharedWithMe != true
setOnClickListener {
safeNavigate(
if (drive?.pack?.capabilities?.useDropbox == true) R.id.createDropBoxFolderFragment
else R.id.dropBoxBottomSheetDialog
)
}
}
}
}

0 comments on commit 5519673

Please sign in to comment.