Skip to content

Commit

Permalink
chore: Update core
Browse files Browse the repository at this point in the history
  • Loading branch information
FabianDevel committed Feb 24, 2025
1 parent e8c4774 commit 85dc780
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -199,20 +199,18 @@ class FileShareLinkSettingsFragment : Fragment() {
}

private fun setupFreeAccountUi() = with(binding) {
AccountUtils.getCurrentDrive()?.let { drive ->
if (drive.isFreeTier) {
setupUpgradeOfferListener()

addPasswordSwitch.isEnabled = false
addPasswordSwitch.isClickable = false
upgradeOfferPassword.isVisible = true
offerPasswordMyKSuitePlusChip.isVisible = true

addExpirationDateSwitch.isEnabled = false
addExpirationDateSwitch.isClickable = false
upgradeOfferExpirationDate.isVisible = true
offerExpirationMyKSuitePlusChip.isVisible = true
}
if (AccountUtils.getCurrentDrive()?.isFreeTier == true) {
setupUpgradeOfferListener()

addPasswordSwitch.isEnabled = false
addPasswordSwitch.isClickable = false
upgradeOfferPassword.isVisible = true
offerPasswordMyKSuitePlusChip.isVisible = true

addExpirationDateSwitch.isEnabled = false
addExpirationDateSwitch.isClickable = false
upgradeOfferExpirationDate.isVisible = true
offerExpirationMyKSuitePlusChip.isVisible = true
}
}

Expand Down

0 comments on commit 85dc780

Please sign in to comment.