Skip to content

Conversation

agustinkoll-rootstrap
Copy link
Contributor

@agustinkoll-rootstrap agustinkoll-rootstrap commented Feb 4, 2021

What's in

removed deprecated crashlytics
updated libraries
moved dialog logic to an object

updated crashlytics
updated build graddle
added view binding
removed deprecated code
Comment on lines 28 to 32
when (message) {
"" -> builder.setMessage(context.getString(R.string.generic_error))
null -> builder.setMessage(context.getString(R.string.generic_error))
else -> builder.setMessage(message)
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

try with message.isNullOrEmpty()

Suggested change
when (message) {
"" -> builder.setMessage(context.getString(R.string.generic_error))
null -> builder.setMessage(context.getString(R.string.generic_error))
else -> builder.setMessage(message)
}
message = if(message.isNullOrEmpty())
context.getString(R.string.generic_error)
else
message
builder.setMessage(message)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done!

Copy link
Collaborator

@amaury901130 amaury901130 left a comment

Choose a reason for hiding this comment

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

💪

@agustinkoll-rootstrap agustinkoll-rootstrap merged commit 980742a into master Feb 17, 2021
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.

5 participants