Skip to content

Adjust InstructionView primary and secondary loading logic#1451

Merged
danesfeder merged 1 commit into
masterfrom
dan-primary-cutoff
Oct 24, 2018
Merged

Adjust InstructionView primary and secondary loading logic#1451
danesfeder merged 1 commit into
masterfrom
dan-primary-cutoff

Conversation

@danesfeder
Copy link
Copy Markdown
Contributor

We are seeing behavior where we are receiving a primary BannerText and setting it, but then showing the secondary TextView as well (without any text). This PR aims to improve the logic for hiding / showing these views making it more straightforward.

@danesfeder danesfeder added bug Defect to be fixed. ✓ ready for review labels Oct 23, 2018
@danesfeder danesfeder added this to the 0.22.0 milestone Oct 23, 2018
@danesfeder danesfeder self-assigned this Oct 23, 2018
Copy link
Copy Markdown
Contributor

@Guardiola31337 Guardiola31337 left a comment

Choose a reason for hiding this comment

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

Other than this minor comment, this looks good to me 🚀

Thanks @danesfeder 🙇

upcomingSecondaryText.setVisibility(GONE);
adjustBannerTextVerticalBias(0.5f);

InstructionLoader instructionLoader = createInstructionLoader(upcomingPrimaryText, primaryBannerText);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

What about extracting this block of code into a new method and reuse it here and also in loadPrimaryAndSecondary method below?

@danesfeder danesfeder force-pushed the dan-primary-cutoff branch 2 times, most recently from 914afdf to d0eae54 Compare October 23, 2018 18:29
@danesfeder
Copy link
Copy Markdown
Contributor Author

@Guardiola31337 sure thing - updated. This is ready for another round 👀

Copy link
Copy Markdown
Contributor

@Guardiola31337 Guardiola31337 left a comment

Choose a reason for hiding this comment

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

Thanks for addressing the feedback @danesfeder 🚢

@danesfeder danesfeder merged commit e8f1637 into master Oct 24, 2018
@danesfeder danesfeder deleted the dan-primary-cutoff branch October 24, 2018 14:45
@danesfeder danesfeder mentioned this pull request Oct 24, 2018
11 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Defect to be fixed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants