Skip to content
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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

bxy379987
Copy link

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

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.

…t adjust the count accordingly,comment the setVisibility method and make pending_upload_icon always visible
Copy link
Member

@sivaraam sivaraam left a 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!

Comment on lines +313 to +319
// public void setUploadIconVisibility() {
// contributionController.getFailedAndPendingContributions();
// contributionController.failedAndPendingContributionList.observe(getViewLifecycleOwner(),
// list -> {
// updateUploadIcon(list.size());
// });
// }
Copy link
Member

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 🙂

Comment on lines +314 to +315
// contributionController.getFailedAndPendingContributions();
// contributionController.failedAndPendingContributionList.observe(getViewLifecycleOwner(),
Copy link
Member

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.

@nicolas-raoul
Copy link
Member

@bxy379987 Any chance to address Sivaraam's comments above? Thanks! :-)

@bxy379987
Copy link
Author

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.
@sivaraam sivaraam mentioned this pull request Nov 10, 2024
8 tasks
Copy link
Member

@nicolas-raoul nicolas-raoul left a 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:

screen-20241115-173301.mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Upload icon vanishes at times even when there are uploads pending to complete
3 participants