File tree Expand file tree Collapse file tree 1 file changed +4
-9
lines changed
app/src/main/java/com/itsaky/androidide/fragments Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -115,21 +115,16 @@ class TemplateDetailsFragment :
115115 return @executeAsyncProvideError
116116 }
117117
118- viewModel.setScreen(MainViewModel .SCREEN_MAIN )
119- flashSuccess(string.project_created_successfully)
120-
118+ val projectDir = result.data.projectDir
121119 recentProjectsViewModel.insertProject(
122120 RecentProject (
123- location = result.data. projectDir.path,
121+ location = projectDir.path,
124122 name = result.data.name,
125123 createdAt = Date ().toString()
126124 )
127125 )
128-
129- viewModel.postTransition(viewLifecycleOwner) {
130- // open the project
131- (requireActivity() as MainActivity ).openProject(result.data.projectDir)
132- }
126+ flashSuccess(string.project_created_successfully)
127+ (requireActivity() as MainActivity ).openProject(projectDir)
133128 }
134129 }
135130
You can’t perform that action at this time.
0 commit comments