prevent NPE

This commit is contained in:
Milos Kozak 2022-07-06 23:11:45 +02:00
parent ad71a38cfb
commit 8b496c45c2

View file

@ -394,6 +394,7 @@ class LocalProfileFragment : DaggerFragment() {
}
private fun updateProtectedUi() {
_binding ?: return
val isLocked = protectionCheck.isLocked(ProtectionCheck.Protection.PREFERENCES)
binding.mainLayout.visibility = isLocked.not().toVisibility()
binding.unlock.visibility = isLocked.toVisibility()