Skip to content

Commit

Permalink
Merge pull request #11952 from nextcloud/multiAccount
Browse files Browse the repository at this point in the history
hide add account if multi account is disabled
  • Loading branch information
tobiasKaminsky authored Sep 8, 2023
2 parents 1b9aadf + add0c1a commit cb21ef0
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,11 @@ class ChooseAccountDialogFragment :
viewThemeUtils
)

// hide "add account" when no multi account
if (!resources.getBoolean(R.bool.multiaccount_support)) {
binding.addAccount.visibility = View.GONE
}

binding.accountsList.adapter = adapter

// Creating listeners for quick-actions
Expand Down

0 comments on commit cb21ef0

Please sign in to comment.