ProfileController: fix non-exhaustive when

Crashes Kotlin 1.7.0

Signed-off-by: Álvaro Brey <alvaro.brey@nextcloud.com>
This commit is contained in:
Álvaro Brey 2022-06-09 10:53:45 +02:00 committed by Andy Scherzinger (Rebase PR Action)
parent 58febdd682
commit 49d2f40e3f

View File

@ -769,6 +769,9 @@ class ProfileController : NewBaseController(R.layout.controller_profile) {
Scope.LOCAL -> holder.binding.scope.setImageResource(R.drawable.ic_password)
Scope.FEDERATED -> holder.binding.scope.setImageResource(R.drawable.ic_contacts)
Scope.PUBLISHED -> holder.binding.scope.setImageResource(R.drawable.ic_link)
null -> {
// nothing
}
}
holder.binding.scope.contentDescription = controller.activity!!.resources.getString(
R.string.scope_toggle_description,