Skip to content

Commit

Permalink
fix: changed naming
Browse files Browse the repository at this point in the history
  • Loading branch information
Aitorbp committed Jun 11, 2024
1 parent cebc3c6 commit ba59abb
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.core.view.isVisible
import androidx.core.widget.doOnTextChanged
import androidx.fragment.app.DialogFragment
import com.owncloud.android.R
Expand All @@ -40,7 +39,7 @@ class CreateShortcutDialogFragment : DialogFragment() {
private var isValidFileName = false
private var hasForbiddenCharacters = false
private var hasMaxCharacters = false
private var hasSpace = false
private var hasEmptyValue = false
private val binding get() = _binding!!
override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View {
_binding = CreateShortcutDialogBinding.inflate(inflater, container, false)
Expand Down Expand Up @@ -86,9 +85,9 @@ class CreateShortcutDialogFragment : DialogFragment() {
}
binding.createShortcutDialogUrlValue.doOnTextChanged { urlValue, _, _, _ ->
urlValue?.let {
hasSpace = urlValue.contains(" ")
isValidUrl = urlValue.isNotBlank() && !hasSpace
handleUrlRequirements(hasSpace)
hasEmptyValue = urlValue.contains(" ")
isValidUrl = urlValue.isNotBlank() && !hasEmptyValue
handleUrlRequirements(hasEmptyValue)
updateCreateShortcutButtonState()
}
}
Expand Down

0 comments on commit ba59abb

Please sign in to comment.