home: add back error screen click handler
This commit is contained in:
parent
7497ff2514
commit
ef751f1a11
1 changed files with 7 additions and 0 deletions
|
@ -318,6 +318,13 @@ class HomeFragment :
|
|||
binding.homeIndexingContainer.isInvisible = state.error == null
|
||||
binding.homeIndexingProgress.isInvisible = state.error != null
|
||||
binding.homeIndexingError.isInvisible = state.error == null
|
||||
if (state.error != null) {
|
||||
binding.homeIndexingContainer.setOnClickListener {
|
||||
findNavController().navigateSafe(
|
||||
HomeFragmentDirections.reportError(state.error)
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
is IndexingState.Indexing -> {
|
||||
binding.homeIndexingContainer.isInvisible = false
|
||||
|
|
Loading…
Reference in a new issue