-
Notifications
You must be signed in to change notification settings - Fork 591
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
base: master
Are you sure you want to change the base?
Conversation
|
||
private fun showUserInterface() { | ||
|
||
sweetUIErrorHandler = SweetUIErrorHandler(requireActivity(), binding.root) |
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 method and initialize the sweetUIErrorHandler globally in onCreateView
} | ||
|
||
private fun showErrorLayout() { | ||
val errorMessage = getStringMessage(R.string.failed_to_load_group_details) |
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.
We already have showFetchingError method, please remove this method and move this logic in showFetchingError method.
} | ||
|
||
fun reloadOnError() { | ||
sweetUIErrorHandler?.hideSweetErrorLayoutUI(binding.scrollGroupDetails, binding.layoutError) |
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.
Move this line in groupDetailsUiState GroupDetailsUiState.ShowProgressbar state and rename the method loadGroupDetailsAndAccounts()
@therajanmaurya pls review it |
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.