-
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
fix Issue5847 as required(make the icon always visible and just adjust the count accordingly) #5901
base: main
Are you sure you want to change the base?
Conversation
…t adjust the count accordingly,comment the setVisibility method and make pending_upload_icon always visible
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.
Thank you for the quick fix! Just some minor comments and it is good to go!
// public void setUploadIconVisibility() { | ||
// contributionController.getFailedAndPendingContributions(); | ||
// contributionController.failedAndPendingContributionList.observe(getViewLifecycleOwner(), | ||
// list -> { | ||
// updateUploadIcon(list.size()); | ||
// }); | ||
// } |
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.
Could you add a comment here and possible in other changed places linking to relevant comment on why we're doing this ? This would be helpful context to know the rationale behind this change 🙂
// contributionController.getFailedAndPendingContributions(); | ||
// contributionController.failedAndPendingContributionList.observe(getViewLifecycleOwner(), |
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.
I think we could also comment the failedAndPendingContributionList
member and the corresponding getFailedAndPendingContributions
as I suppose they are not used for any other purpose.
@bxy379987 Any chance to address Sivaraam's comments above? Thanks! :-) |
Ok sir, sorry, I was taking four exam this two weeks, I forgot to continue , I will improve it again before the end of this week |
…le the original code has been commented out and retained with a note for potential re-use in the future.
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.
Testing this branch, the icon is always visible but numbers are flickering and often invisible:
comment out the setVisibility method and all calls to setVisibility method, and make pending_upload_icon always visible
Description (required)
Fixes #5847
What changes did you make and why?
Comment out the original setVisibility method and related methods, then set pending_upload_icon to visible, to ensure that the pending_upload_icon is always visible on the contribution interface, making it convenient for users
Tests performed (required)
the upload_icon is always visible
Tested {build variant, e.g. ProdDebug} on {Pixel 8} with API level {API 34}.
Screenshots (for UI changes only)
Need help? See https://support.google.com/android/answer/9075928
Note: Please ensure that you have read CONTRIBUTING.md if this is your first pull request.