mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 21:03:54 +01:00
FailedUploadsFragment.kt: removed unneeded non-null assertion (!!)
This commit is contained in:
parent
6000788076
commit
a1abc64a21
1 changed files with 3 additions and 3 deletions
|
|
@ -63,7 +63,7 @@ class FailedUploadsFragment :
|
||||||
}
|
}
|
||||||
|
|
||||||
if (StringUtils.isEmpty(userName)) {
|
if (StringUtils.isEmpty(userName)) {
|
||||||
userName = sessionManager!!.getUserName()
|
userName = sessionManager.getUserName()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -96,8 +96,8 @@ class FailedUploadsFragment :
|
||||||
fun initRecyclerView() {
|
fun initRecyclerView() {
|
||||||
binding.failedUploadsRecyclerView.setLayoutManager(LinearLayoutManager(this.context))
|
binding.failedUploadsRecyclerView.setLayoutManager(LinearLayoutManager(this.context))
|
||||||
binding.failedUploadsRecyclerView.adapter = adapter
|
binding.failedUploadsRecyclerView.adapter = adapter
|
||||||
pendingUploadsPresenter!!.getFailedContributions()
|
pendingUploadsPresenter.getFailedContributions()
|
||||||
pendingUploadsPresenter!!.failedContributionList.observe(
|
pendingUploadsPresenter.failedContributionList.observe(
|
||||||
viewLifecycleOwner,
|
viewLifecycleOwner,
|
||||||
) { list: PagedList<Contribution?> ->
|
) { list: PagedList<Contribution?> ->
|
||||||
adapter.submitList(list)
|
adapter.submitList(list)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue