-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
First issue: Fixed errors/warnings in FailedUploadFragments.kt #6000
base: main
Are you sure you want to change the base?
Conversation
I am getting this crash when uploading a file, can you try?
Thanks! |
Hi @KYash03, thanks a lot for contributing.
|
* functionality for the user to retry or cancel failed uploads. | ||
*/ | ||
class FailedUploadsFragment : | ||
CommonsDaggerSupportFragment(), | ||
PendingUploadsContract.View, | ||
FailedUploadsAdapter.Callback { | ||
@Inject | ||
lateinit var pendingUploadsPresenter: PendingUploadsPresenter |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any particular reason in removing this? I don't see any lint/warnings over this.
@KYash03 Did you get a chance to read our comments? Feel free to fix only 1 or 2 errors at first. Thanks! :-) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Discussion above
Hey, this is my first PR here. I worked on #5996
Made a few changes:
onCreateView
fromView?
toView
if (contributionsList != null)
checkscontributionsList
,initAdapter
, andinitRecyclerView
toprivate
contributionsList
fromvar
toval
since it's never reassignedthis
String.format
with directgetString
calls (only where formatting wasn't required!)list.isEmpty()
instead oflist.size == 0
else
block ininitRecyclerView
Would appreciate any sort of feedback. Thanks!