hide add account if multi account is disabled

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
This commit is contained in:
tobiasKaminsky 2023-09-08 11:52:31 +02:00
parent 1b9aadf0a1
commit add0c1acc1
No known key found for this signature in database
GPG key ID: 0E00D4D47D0C5AF7

View file

@ -130,6 +130,11 @@ class ChooseAccountDialogFragment :
viewThemeUtils viewThemeUtils
) )
// hide "add account" when no multi account
if (!resources.getBoolean(R.bool.multiaccount_support)) {
binding.addAccount.visibility = View.GONE
}
binding.accountsList.adapter = adapter binding.accountsList.adapter = adapter
// Creating listeners for quick-actions // Creating listeners for quick-actions