-
Notifications
You must be signed in to change notification settings - Fork 681
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
Conversation
@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! |
app/src/main/java/org/mifos/mobilebanking/ui/fragments/BeneficiaryApplicationFragment.java
Outdated
Show resolved
Hide resolved
@@ -78,6 +80,7 @@ public void onError(Throwable e) { | |||
public void onNext(BeneficiaryTemplate beneficiaryTemplate) { | |||
getMvpView().hideProgress(); | |||
getMvpView().showBeneficiaryTemplate(beneficiaryTemplate); | |||
getMvpView().setVisibility(View.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.
Add this inside onComplete()
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.
@miPlodder I addressed your change 😄
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.
Remove this from onNext()
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.
@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(); | ||
|
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.
Remove this new line.
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.
@miPlodder I addressed your change 😄
@miPlodder I added the last bit of your edits, can you resolve the issue and make sure my request is ready for merging? |
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.