faberNovel / stateful-layout

Android StatefulLayout
Apache License 2.0
10 stars 4 forks source link

Expose error message setter on default error state #46

Closed AchrafAmil closed 4 years ago

AchrafAmil commented 4 years ago

When using the default error state, one can switch to it using showError { myRetryCallback() } setting thereby a click listener on the retry button.

But, unlike the default error state retry button, there is no way to access the default error state message textView.

Suggestion: add a showError("there was a glitch, try again") { retry() } extension function.

sjcqs commented 4 years ago

Good idea 😄