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

Fixed :#1772 Error handling missing in GroupDetails #2050

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

Conversation

kmanikanta335
Copy link

Fixes #1772

Screenshots of UI changes.

1772.mp4

Please make sure these boxes are checked before submitting your pull request - thanks!

  • ✅ Apply the MifosStyle.xml style template to your code in Android Studio.

  • ✅ Run the unit tests with ./gradlew check to make sure you didn't break anything

  • ✅ If you have multiple commits please combine them into one commit by squashing them.


private fun showUserInterface() {

sweetUIErrorHandler = SweetUIErrorHandler(requireActivity(), binding.root)
Copy link
Member

Choose a reason for hiding this comment

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

Remove this method and initialize the sweetUIErrorHandler globally in onCreateView

}

private fun showErrorLayout() {
val errorMessage = getStringMessage(R.string.failed_to_load_group_details)
Copy link
Member

Choose a reason for hiding this comment

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

We already have showFetchingError method, please remove this method and move this logic in showFetchingError method.

}

fun reloadOnError() {
sweetUIErrorHandler?.hideSweetErrorLayoutUI(binding.scrollGroupDetails, binding.layoutError)
Copy link
Member

Choose a reason for hiding this comment

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

Move this line in groupDetailsUiState GroupDetailsUiState.ShowProgressbar state and rename the method loadGroupDetailsAndAccounts()

@kmanikanta335
Copy link
Author

@therajanmaurya pls review it

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.

Error handling missing in GroupDetails
2 participants