Skip to content

Commit

Permalink
Remove unnecessary root check to display drive name in FileListFragment
Browse files Browse the repository at this point in the history
  • Loading branch information
LunarX committed Feb 22, 2024
1 parent 71f2b6c commit 9c0c30f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ open class FileListFragment : MultiSelectFragment(MATOMO_CATEGORY), SwipeRefresh

override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View {
folderId = navigationArgs.folderId
folderName = if (folderId == ROOT_ID) AccountUtils.getCurrentDrive()?.name ?: "/" else navigationArgs.folderName
folderName = navigationArgs.folderName
_binding = FragmentFileListBinding.inflate(inflater, container, false)

return binding.root
Expand Down

0 comments on commit 9c0c30f

Please sign in to comment.