Skip to content

Commit

Permalink
[fix] makes loading icon invisible as expected.
Browse files Browse the repository at this point in the history
  • Loading branch information
coderPaddyS committed Jun 28, 2024
1 parent 69467d8 commit 387277a
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -232,22 +232,22 @@ class DataInspectionFragment : Fragment() {
dataBinding.dataInspectionLoadStatusImage.setColorFilter(ContextCompat.getColor(requireActivity(), it.colorRes))
when(it) {
LoadStatus.UNKNOWN, null -> {
dataBinding.dataInspectionLoadStatusName.visibility = View.GONE
dataBinding.dataInspectionLoadStatus.visibility = View.GONE
}
LoadStatus.ERROR_INVALID_JSON, LoadStatus.ERROR -> {
dataBinding.dataInspectionLoadStatusName.visibility = View.VISIBLE
dataBinding.dataInspectionLoadStatus.visibility = View.VISIBLE
}
LoadStatus.LOADING -> {
dataBinding.dataInspectionLoadStatusName.visibility = View.VISIBLE
dataBinding.dataInspectionLoadStatus.visibility = View.VISIBLE
}
LoadStatus.DECRYPTING -> {
dataBinding.dataInspectionLoadStatusName.visibility = View.VISIBLE
dataBinding.dataInspectionLoadStatus.visibility = View.VISIBLE
}
LoadStatus.DECRYPTION_ERROR -> {
dataBinding.dataInspectionLoadStatusName.visibility = View.VISIBLE
dataBinding.dataInspectionLoadStatus.visibility = View.VISIBLE
}
LoadStatus.DONE -> {
dataBinding.dataInspectionLoadStatusName.visibility = View.GONE
dataBinding.dataInspectionLoadStatus.visibility = View.GONE

encryptionEnabled = encryptionEnabled and viewModel.isEncrypted

Expand Down

0 comments on commit 387277a

Please sign in to comment.