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
Copy file name to clipboardExpand all lines: owncloudApp/src/main/java/com/owncloud/android/presentation/spaces/createspace/CreateSpaceDialogFragment.kt
+9-7Lines changed: 9 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -78,12 +78,14 @@ class CreateSpaceDialogFragment : DialogFragment() {
78
78
val spaceQuota = convertToBytes(createSpaceDialogQuotaUnit.selectedItem.toString())
79
79
80
80
if (isEditMode) {
81
-
createSpaceListener.editSpace(
82
-
spaceId = currentSpace!!.id,
83
-
spaceName = spaceName,
84
-
spaceSubtitle = spaceSubtitle,
85
-
spaceQuota =if (canEditQuota) spaceQuota elsenull
86
-
)
81
+
currentSpace?.let {
82
+
createSpaceListener.editSpace(
83
+
spaceId = it.id,
84
+
spaceName = spaceName,
85
+
spaceSubtitle = spaceSubtitle,
86
+
spaceQuota =if (canEditQuota) spaceQuota elsenull
87
+
)
88
+
}
87
89
} else {
88
90
createSpaceListener.createSpace(
89
91
spaceName = spaceName,
@@ -127,7 +129,7 @@ class CreateSpaceDialogFragment : DialogFragment() {
0 commit comments