Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
LunarX committed Oct 24, 2023
1 parent f201ef8 commit 8783977
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class MySharesFragment : FileSubTypeListFragment() {
override val noItemsRootIcon = R.drawable.ic_share
override val noItemsRootTitle = R.string.mySharesNoFile

override fun initSwipeRefreshLayout(): SwipeRefreshLayout? = binding.swipeRefreshLayout
override fun initSwipeRefreshLayout(): SwipeRefreshLayout = binding.swipeRefreshLayout

override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
initParams()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,11 @@ class SharedWithMeFragment : FileSubTypeListFragment() {
fileListViewModel.isSharedWithMe = true
super.onViewCreated(view, savedInstanceState)

binding.collapsingToolbarLayout.title =
if (inDriveList) getString(R.string.sharedWithMeTitle) else navigationArgs.folderName
binding.collapsingToolbarLayout.title = if (inDriveList) {
getString(R.string.sharedWithMeTitle)
} else {
navigationArgs.folderName
}

binding.sortButton.isGone = inDriveList
fileAdapter.onFileClicked = { file ->
Expand Down

0 comments on commit 8783977

Please sign in to comment.