|
@@ -192,13 +192,7 @@ class MovieEditViewModel : ViewModel() {
|
|
}
|
|
}
|
|
|
|
|
|
fun saveProject(context: Context, project: Project, oldName: String): Completable {
|
|
fun saveProject(context: Context, project: Project, oldName: String): Completable {
|
|
- var newProject = project
|
|
|
|
- project.name?.let { projectName ->
|
|
|
|
- if (projectName != oldName) {
|
|
|
|
- newProject = com.bomostory.sceneeditmodule.utils.FileUtils.changeProjectName(oldName, projectName)
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- return FileUtils.saveProject(context, newProject, 1920, 1080)
|
|
|
|
|
|
+ return FileUtils.saveProject(context, project, 1920, 1080)
|
|
.andThen {
|
|
.andThen {
|
|
onProjectSavedListeners.forEach { it.run() }
|
|
onProjectSavedListeners.forEach { it.run() }
|
|
it.onComplete()
|
|
it.onComplete()
|
|
@@ -266,5 +260,4 @@ class MovieEditViewModel : ViewModel() {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
}
|
|
}
|