prevent NPE
This commit is contained in:
parent
ad71a38cfb
commit
8b496c45c2
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue