Skip to content

Commit f29c1d6

Browse files
committed
feat: set default quota when switch is enabled
1 parent 873b884 commit f29c1d6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

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

6363
createSpaceDialogQuotaSwitch.setOnCheckedChangeListener { _, isChecked ->
64+
if (isChecked) { createSpaceDialogQuotaValue.setText("1") }
6465
updateUI()
6566
createSpaceDialogQuotaNoRestrictionLabel.isVisible = !isChecked
6667
createSpaceDialogQuotaLayout.isVisible = isChecked

0 commit comments

Comments
 (0)