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: #894: Progress Bar shown on top of Input Fields #917

Merged
merged 1 commit into from
Nov 11, 2018

Conversation

etlhsu
Copy link
Contributor

@etlhsu etlhsu commented Oct 28, 2018

Fixes #894

My solution makes sure that the progress bar is never laid on top of the UI. I achieved this functionality by hiding the UI, whenever the loading spinner is been called to show its progress, and then redisplaying the UI after the UI has loaded up.

image

@etlhsu
Copy link
Contributor Author

etlhsu commented Oct 28, 2018

@miPlodder, can you provide further feedback on my solution (ex. the location of the solution). I would like to be able to improve the quality and clarity of my solution as much as possible!

@@ -78,6 +80,7 @@ public void onError(Throwable e) {
public void onNext(BeneficiaryTemplate beneficiaryTemplate) {
getMvpView().hideProgress();
getMvpView().showBeneficiaryTemplate(beneficiaryTemplate);
getMvpView().setVisibility(View.VISIBLE);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Add this inside onComplete()

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@miPlodder I addressed your change 😄

Copy link
Collaborator

Choose a reason for hiding this comment

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

Remove this from onNext()

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@miPlodder I now see what you mean, I am using the methods innocrectly, onNext() does work to prepare the UI, and onComplete() finishes the process

@Override
public void showProgress() {
showProgressBar();

Copy link
Collaborator

Choose a reason for hiding this comment

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

Remove this new line.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@miPlodder I addressed your change 😄

@etlhsu
Copy link
Contributor Author

etlhsu commented Oct 29, 2018

@miPlodder I added the last bit of your edits, can you resolve the issue and make sure my request is ready for merging?

@miPlodder miPlodder merged commit 9ceee70 into openMF:development Nov 11, 2018
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.

2 participants