Skip to content

Commit 5a7a182

Browse files
committed
feat: set default quota when switch is enabled for space creation
1 parent 873b884 commit 5a7a182

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

owncloudApp/src/main/java/com/owncloud/android/presentation/spaces/createspace/CreateSpaceDialogFragment.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ class CreateSpaceDialogFragment : DialogFragment() {
6161
}
6262

6363
createSpaceDialogQuotaSwitch.setOnCheckedChangeListener { _, isChecked ->
64+
if (!isEditMode && isChecked) {
65+
createSpaceDialogQuotaValue.setText("1")
66+
}
6467
updateUI()
6568
createSpaceDialogQuotaNoRestrictionLabel.isVisible = !isChecked
6669
createSpaceDialogQuotaLayout.isVisible = isChecked

0 commit comments

Comments
 (0)