You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 6d23a6d
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: owncloudApp/src/main/java/com/owncloud/android/presentation/spaces/createspace/CreateSpaceDialogFragment.kt
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -89,7 +89,7 @@ class CreateSpaceDialogFragment : DialogFragment() {
89
89
createSpaceButton.setOnClickListener {
90
90
val spaceName = createSpaceDialogNameValue.text.toString()
91
91
val spaceSubtitle = createSpaceDialogSubtitleValue.text.toString()
92
-
val spaceQuota = convertToBytes(createSpaceDialogQuotaValue.toString())
92
+
val spaceQuota = convertToBytes(createSpaceDialogQuotaValue.text.toString())
93
93
94
94
if (isEditMode) {
95
95
currentSpace?.let {
@@ -151,8 +151,8 @@ class CreateSpaceDialogFragment : DialogFragment() {
151
151
}
152
152
153
153
privatefunconvertToBytes(spaceQuota:String): Long {
154
-
val quotaNumber = spaceQuota.removeSuffix(" GB").toLongOrNull() ?:return0L
155
-
return quotaNumber *1_000_000_000L
154
+
val quotaNumber = spaceQuota.toDoubleOrNull() ?:return0L
0 commit comments