Fix repository usage

Signed-off-by: alperozturk <alper_ozturk@proton.me>
This commit is contained in:
alperozturk 2023-11-03 15:48:51 +01:00
parent 03093cc5cb
commit 7390417e64
No known key found for this signature in database
GPG key ID: 4E577DC593B59BDF

View file

@ -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)