Skip to content

Commit

Permalink
Fix repository usage
Browse files Browse the repository at this point in the history
Signed-off-by: alperozturk <[email protected]>
  • Loading branch information
alperozturk96 committed Nov 3, 2023
1 parent 03093cc commit 7390417
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,11 @@ class TrashbinActivity :
}
}

val trashRepository = RemoteTrashbinRepository(user.orElse(accountProvider!!.user), clientFactory)
trashbinPresenter = TrashbinPresenter(trashRepository, this)
clientFactory?.let {
val trashRepository = RemoteTrashbinRepository(user.orElse(accountProvider!!.user), it)
trashbinPresenter = TrashbinPresenter(trashRepository, this)
}

binding = TrashbinActivityBinding.inflate(layoutInflater)

setContentView(binding.root)
Expand Down

0 comments on commit 7390417

Please sign in to comment.