Skip to content

Fixed bug "Copy to subsequent media" does not work if depicts Wikidata place #5108

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

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

Conversation

junhaow1
Copy link

@junhaow1 junhaow1 commented Oct 30, 2022

Description (required)

Fixes #5057

What changes did you make and why?
The bug occurs if the user selects yes for “whether the pictures depict the place”, the button ‘btnCopyToSubsequentMedia’ sets its visibility to ‘GONE’, which conflicts the original visibility ‘VISIBLE’.

Tests performed (required)

Tested beta on Google pixel 6 with API level 30.


@@ -164,19 +164,29 @@ private void init() {

if (callback.getIndexInViewFlipper(this) == 0) {
btnPrevious.setEnabled(false);

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this new line really needed?

btnCopyToSubsequentMedia.setVisibility(View.GONE);
} else {

if (callback.getIndexInViewFlipper(this) != callback.getTotalNumberOfSteps()-4){
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you mind keeping the == and flipping the GONE/VISIBLE calls? Double-negations are confusing. Thanks!

@nicolas-raoul nicolas-raoul changed the title Fixed bug Fixed bug "Copy to subsequent media" does not work if depicts Wikidata place Nov 23, 2022
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.

"Copy to subsequent media" does not work if depicts Wikidata place
2 participants