Skip to content

Commit

Permalink
fix: Fixed rare crash in BlocklistFragment
Browse files Browse the repository at this point in the history
  • Loading branch information
timschneeb committed Jul 22, 2023
1 parent 3c8df2c commit ac88b66
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -148,12 +148,13 @@ class BlocklistFragment : Fragment() {
}

this@BlocklistFragment.binding.notice.isVisible = restrictedApps.isNotEmpty()
this@BlocklistFragment.binding.noticeLabel.text =
requireContext().resources.getQuantityString(
context?.let {
this@BlocklistFragment.binding.noticeLabel.text = it.resources.getQuantityString(
R.plurals.unsupported_apps,
restrictedApps.size,
restrictedApps.size
)
}
}
}
}
Expand Down

0 comments on commit ac88b66

Please sign in to comment.