prevent NPE
This commit is contained in:
parent
ad71a38cfb
commit
8b496c45c2
1 changed files with 1 additions and 0 deletions
|
@ -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