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: Collection sheet Keeps on loading even the internet is turned of… #2071

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

PraneGIT
Copy link

@PraneGIT PraneGIT commented Feb 23, 2024

Fixes #2051

collectionSheetIssue.mp4
officeIssue.mp4
  • 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.

@PraneGIT
Copy link
Author

@Aditya-gupta99 can you review this bug fix

@@ -86,6 +87,10 @@ class NewIndividualCollectionSheetViewModel @Inject constructor(private val repo
_newIndividualCollectionSheetUiState.value =
NewIndividualCollectionSheetUiState.ShowError(errorMessage)
}
else if (e is UnknownHostException) {
_newIndividualCollectionSheetUiState.value =
NewIndividualCollectionSheetUiState.ShowError("No internet connection")
Copy link
Member

Choose a reason for hiding this comment

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

Use strings.xml and don't use hard coded strings

@@ -114,6 +119,10 @@ class NewIndividualCollectionSheetViewModel @Inject constructor(private val repo
_newIndividualCollectionSheetUiState.value =
NewIndividualCollectionSheetUiState.ShowError(errorMessage)
}
else if (e is UnknownHostException) {
_newIndividualCollectionSheetUiState.value =
NewIndividualCollectionSheetUiState.ShowError("No internet connection")
Copy link
Member

Choose a reason for hiding this comment

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

Use strings.xml and don't use hard coded strings

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.

Issue : Collection sheet Keeps on loading even the internet is turned off
2 participants