Skip to content

Commit

Permalink
Global refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
sirambd committed Oct 24, 2023
1 parent 872ffda commit e3ae39b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ class SaveExternalFilesActivity : BaseActivity() {
finish()
} else {
withContext(Dispatchers.Main) {
binding.saveButton?.hideProgress(R.string.buttonSave)
binding.saveButton.hideProgress(R.string.buttonSave)
showSnackbar(R.string.errorSave)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ class FileShareLinkSettingsFragment : Fragment() {
}

private fun setupAddPassword() = with(binding) {
addPasswordSwitch?.setOnCheckedChangeListener { _, isChecked ->
addPasswordSwitch.setOnCheckedChangeListener { _, isChecked ->
val actionPasswordVisible = shareLink.right == ShareLink.ShareLinkFilePermission.PASSWORD
newPasswordButton.isVisible = actionPasswordVisible && isChecked
passwordTextLayout.isVisible = !actionPasswordVisible && isChecked
Expand Down Expand Up @@ -232,7 +232,7 @@ class FileShareLinkSettingsFragment : Fragment() {
}
addPasswordDescription.text = getString(
R.string.shareLinkPasswordRightDescription,
context?.getString(getTypeName(navigationArgs.isFolder, navigationArgs.isOnlyOfficeFile))
context.getString(getTypeName(navigationArgs.isFolder, navigationArgs.isOnlyOfficeFile))
)

addExpirationDateSwitch.isChecked = shareLink.validUntil != null
Expand Down

0 comments on commit e3ae39b

Please sign in to comment.